perf: Preconnect to CDN

This commit is contained in:
Tom Moor
2023-07-08 14:19:28 -04:00
parent cf32d227e6
commit 21d446881e
3 changed files with 35 additions and 6 deletions

View File

@@ -568,6 +568,22 @@ export class Environment {
public AWS_S3_UPLOAD_MAX_SIZE =
this.toOptionalNumber(process.env.AWS_S3_UPLOAD_MAX_SIZE) ?? 100000000;
/**
* Optional AWS S3 endpoint URL for file attachments.
*/
@IsOptional()
public AWS_S3_ACCELERATE_URL = this.toOptionalString(
process.env.AWS_S3_ACCELERATE_URL
);
/**
* Optional AWS S3 endpoint URL for file attachments.
*/
@IsOptional()
public AWS_S3_UPLOAD_BUCKET_URL = this.toOptionalString(
process.env.AWS_S3_UPLOAD_BUCKET_URL
);
/**
* Set default AWS S3 ACL for file attachments.
*/