We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7728586 commit 8da732aCopy full SHA for 8da732a
_nuxthub/server/utils/bucket.ts
@@ -12,7 +12,7 @@ export function useBucket (name: string = '') {
12
console.log('Using R2 local (proxy for useBucket() is not yet supported)')
13
}
14
// @ts-ignore
15
- const binding = globalThis[bucketName]
+ const binding = process.env[bucketName] || globalThis.__env__?.[bucketName] || globalThis[bucketName]
16
if (!binding) {
17
throw createError(`Missing Cloudflare R2 binding ${bucketName}`)
18
0 commit comments