fix: Crash on misconfigured file storage env (#12325)

closes #12323
This commit is contained in:
Tom Moor
2026-05-12 08:07:08 -04:00
committed by GitHub
parent fc01deeefd
commit 58f031c7e9
+4
View File
@@ -262,6 +262,10 @@ export default class S3Storage extends BaseStorage {
return env.AWS_S3_ACCELERATE_URL;
}
if (!env.AWS_S3_UPLOAD_BUCKET_URL) {
return undefined;
}
// support old path-style S3 uploads and new virtual host uploads by
// checking for the bucket name in the endpoint url.
if (env.AWS_S3_UPLOAD_BUCKET_NAME) {