Skip to content

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

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

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

Conversation

@onmax
Copy link
Copy Markdown
Contributor

@onmax onmax commented Jan 19, 2026

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
Copy link
Copy Markdown

vercel bot commented Jan 19, 2026

@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
Copy link
Copy Markdown

pkg-pr-new bot commented Jan 19, 2026

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