This commit is contained in:
Madeline
2022-09-26 22:41:21 +10:00
parent fcc0884e36
commit 99ee7e9400
280 changed files with 6800 additions and 3908 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ export class S3Storage implements Storage {
public constructor(
private client: S3,
private bucket: string,
private basePath?: string
private basePath?: string,
) {}
/**
+3 -3
View File
@@ -33,14 +33,14 @@ if (process.env.STORAGE_PROVIDER === "file" || !process.env.STORAGE_PROVIDER) {
if (!region) {
console.error(
`[CDN] You must provide a region when using the S3 storage provider.`
`[CDN] You must provide a region when using the S3 storage provider.`,
);
process.exit(1);
}
if (!bucket) {
console.error(
`[CDN] You must provide a bucket when using the S3 storage provider.`
`[CDN] You must provide a bucket when using the S3 storage provider.`,
);
process.exit(1);
}
@@ -50,7 +50,7 @@ if (process.env.STORAGE_PROVIDER === "file" || !process.env.STORAGE_PROVIDER) {
if (!location) {
console.warn(
`[CDN] STORAGE_LOCATION unconfigured for S3 provider, defaulting to the bucket root...`
`[CDN] STORAGE_LOCATION unconfigured for S3 provider, defaulting to the bucket root...`,
);
location = undefined;
}