Skip to content

fix(db): use dynamic import for migrations plugin#788

Merged
atinux merged 1 commit into
nuxt-hub:mainfrom
onmax:fix/dynamic-db-import
Jan 22, 2026
Merged

fix(db): use dynamic import for migrations plugin#788
atinux merged 1 commit into
nuxt-hub:mainfrom
onmax:fix/dynamic-db-import

Conversation

@onmax

@onmax onmax commented Jan 19, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Static import of hub:db fails when remote bindings proxy isn't initialized yet
  • Migration plugin runs early, causing timing issues with remote plugin's async getPlatformProxy()

Fix

  • Dynamic import with try/catch + helpful error messages

Closes #741

@vercel

vercel Bot commented Jan 19, 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 19, 2026

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

commit: aefb986

@atinux
atinux merged commit 3665a3d into nuxt-hub:main Jan 22, 2026
7 of 9 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.

D1 bindings not accessible in dev with nitro-cloudflare-dev

2 participants