Skip to content

fix: handle nitro-cloudflare-dev Promise bindings#742

Closed
onmax wants to merge 1 commit into
nuxt-hub:mainfrom
onmax:fix/nitro-cloudflare-dev-bindings
Closed

fix: handle nitro-cloudflare-dev Promise bindings#742
onmax wants to merge 1 commit into
nuxt-hub:mainfrom
onmax:fix/nitro-cloudflare-dev-bindings

Conversation

@onmax

@onmax onmax commented Dec 19, 2025

Copy link
Copy Markdown
Contributor

Superseded

This PR has been superseded by:

@vercel

vercel Bot commented Dec 19, 2025

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 Dec 19, 2025

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

commit: 657c0f4

@atinux

atinux commented Dec 19, 2025

Copy link
Copy Markdown
Contributor

Thanks for the help on this @onmax

Did you see that with latest Nitro compat, we don't need to install nitro-cloudflare-dev anymore?
https://nitro.build/deploy/providers/cloudflare#dev-preset

@onmax

onmax commented Dec 19, 2025

Copy link
Copy Markdown
Contributor Author

I will be offline for the next week. Please feel free to iterate or close this PR if a better solution emerges.

Merry Christmas to the whole team! And well done on this new NuxtHub; I'm really excited about everything that's happening in the Nuxt ecosystem! 2026 will be 🔥

@atinux
atinux requested a review from RihanArfan January 9, 2026 09:32
@atinux

atinux commented Jan 9, 2026

Copy link
Copy Markdown
Contributor

I will let @RihanArfan have a deep review at it once he's back from holidays :)

@adinvadim

Copy link
Copy Markdown

I think release 0.10 without this PR is beta, because many feature still not migrated without this PR

- Add `hub.remote` option to use production Cloudflare bindings during dev
- Fix Promise bindings from nitro-cloudflare-dev via getPlatformProxy
- Change db import to dynamic to handle async bindings
- Add isRemoteDev helper to reduce duplication
- Fail loudly when remote bindings fail (no silent stub fallback)
- Fix proxy.dispose() to actually call the function

Fixes nuxt-hub#741
Fixes nuxt-hub#743
@onmax
onmax force-pushed the fix/nitro-cloudflare-dev-bindings branch from 5617264 to 657c0f4 Compare January 16, 2026 13:36
@onmax

onmax commented Jan 19, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #787 (feature) + #788 (bug fix)

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

3 participants