We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7272a42 commit c0b8e2fCopy full SHA for c0b8e2f
app/api/(utils)/storage.ts
@@ -254,9 +254,7 @@ export function createStorageFromEnv(localStorageEnvVar: string | undefined): Ap
254
return FileStorage.fromEnv("STORAGE_LOCAL_DIR");
255
} catch {}
256
257
- try {
258
- return S3Storage.fromEnv();
259
- } catch {}
+ return S3Storage.fromEnv();
260
261
throw new Error(`Must specify ${localStorageEnvVar} or AWS environment variables`);
262
}
0 commit comments