Skip to content

Comments

fix(db): respect explicit libsql driver on Cloudflare#842

Merged
atinux merged 1 commit intonuxt-hub:mainfrom
onmax:fix/respect-explicit-libsql-driver
Feb 15, 2026
Merged

fix(db): respect explicit libsql driver on Cloudflare#842
atinux merged 1 commit intonuxt-hub:mainfrom
onmax:fix/respect-explicit-libsql-driver

Conversation

@onmax
Copy link
Contributor

@onmax onmax commented Feb 15, 2026

Closes #841

Summary

NuxtHub forces driver: 'd1' on Cloudflare production builds, ignoring user's explicit driver: 'libsql' with inline connection config (e.g. Turso with custom env var names).

The Cloudflare D1 override ran before the userExplicitLibsql check, so it always won. Reordered the priority so explicit driver: 'libsql' is respected.

StackBlitz

Link Expected
Bug nuxthub-841 FAIL: d1 forced
Fix nuxthub-841-fix PASS: libsql respected

CLI Reproduction

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

Verify fix

git sparse-checkout add nuxthub-841-fix
cd ../nuxthub-841-fix && pnpm i && pnpm verify

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

Related

@vercel
Copy link

vercel bot commented Feb 15, 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 force-pushed the fix/respect-explicit-libsql-driver branch from bd61d18 to b3867f5 Compare February 15, 2026 12:57
@atinux atinux merged commit a6eb5aa into nuxt-hub:main Feb 15, 2026
1 of 3 checks passed
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.

Cannot deploy NuxtHub to Cloudflare using Turso, always forced to D1 driver

2 participants