Skip to content

fix(blob): resolve runtime s3 envs#865

Open
onmax wants to merge 1 commit intonuxt-hub:mainfrom
onmax:fix/blob-runtime-s3-envs
Open

fix(blob): resolve runtime s3 envs#865
onmax wants to merge 1 commit intonuxt-hub:mainfrom
onmax:fix/blob-runtime-s3-envs

Conversation

@onmax
Copy link
Contributor

@onmax onmax commented Mar 11, 2026

Closes #864

Summary

Blob driver auto-detection was happening during module setup, so production Node builds baked in the filesystem driver when S3_* variables were only injected at runtime.

This defers blob driver resolution to runtime for production Node deployments, aligns the blob config types with the documented env-backed defaults, and documents the Docker/Kubernetes path.

I test it with a real docker as well

StackBlitz

Link Expected
Bug nuxthub-864 ❌ Build script fails because runtime blob driver stays on fs
Fix nuxthub-864-fix ✅ Build script passes and runtime blob driver resolves to s3

CLI Reproduction

git clone --depth 1 --filter=blob:none --sparse https://github.com/onmax/repros.git
cd repros && git sparse-checkout set nuxthub-864
cd nuxthub-864 && pnpm i && pnpm build

Verify Fix

git sparse-checkout add nuxthub-864-fix
cd ../nuxthub-864-fix && pnpm i && pnpm build

The -fix folder uses pnpm patch to apply the fix locally.

Related

@vercel
Copy link

vercel bot commented Mar 11, 2026

@onmax is attempting to deploy a commit to the NuxtLabs Team on Vercel.

A member of the Team first needs to authorize it.

@onmax onmax marked this pull request as draft March 11, 2026 12:57
@pkg-pr-new
Copy link

pkg-pr-new bot commented Mar 11, 2026

npm i https://pkg.pr.new/@nuxthub/core@865

commit: 5fcd289

@onmax onmax force-pushed the fix/blob-runtime-s3-envs branch from fe44259 to 5b53943 Compare March 11, 2026 13:01
@onmax onmax marked this pull request as ready for review March 11, 2026 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

S3 Blob Runtime Environment Variables not detected

1 participant