Skip to content

fix(db): use libsql in prepare mode with cloudflare preset#798

Closed
onmax wants to merge 1 commit into
nuxt-hub:mainfrom
onmax:fix/db-binding-cloudflare-prepare
Closed

fix(db): use libsql in prepare mode with cloudflare preset#798
onmax wants to merge 1 commit into
nuxt-hub:mainfrom
onmax:fix/db-binding-cloudflare-prepare

Conversation

@onmax

@onmax onmax commented Jan 23, 2026

Copy link
Copy Markdown
Contributor

WIP
Closes #791

Summary

PR #775 fixed dev mode but missed prepare mode. nuxt prepare runs with dev=false, _prepare=true → D1 driver selected → fails locally with "DB binding not found".

StackBlitz

Link Expected
Bug nuxthub-791 ❌ DB binding not found
Fix nuxthub-791-fixed ✅ Dev server starts

CLI Reproduction

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

Verify fix

git sparse-checkout add nuxthub-791-fixed
cd ../nuxthub-791-fixed && pnpm i && pnpm dev

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

Related

@vercel

vercel Bot commented Jan 23, 2026

Copy link
Copy Markdown

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

A member of the Team first needs to authorize it.

@pkg-pr-new

pkg-pr-new Bot commented Jan 23, 2026

Copy link
Copy Markdown
npm i https://pkg.pr.new/@nuxthub/core@798

commit: ef80b78

@onmax
onmax force-pushed the fix/db-binding-cloudflare-prepare branch from 9f88ea0 to b500307 Compare January 23, 2026 07:52
@onmax
onmax force-pushed the fix/db-binding-cloudflare-prepare branch from b500307 to ef80b78 Compare January 23, 2026 07:59
@onmax

onmax commented Jan 23, 2026

Copy link
Copy Markdown
Contributor Author

Closing: fix included in #797

@onmax onmax closed this Jan 23, 2026
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.

nitro preset 'cloudflare-module'

1 participant