nitrojs / nitro-cloudflare-dev

Enable access to the Cloudflare runtime bindings in development server of Nitro and Nuxt
MIT License
79 stars 4 forks source link

How to connect to a remote DB? ( --remote) #21

Open cosbgn opened 6 months ago

cosbgn commented 6 months ago

Is it possible to connect/code against a remote db?

For migrations is enough to add --remote like this:

npx wrangler d1 migrations apply BINDING_NAME --remote"

But I can't manage to preview/edit/add remote data.

atinux commented 6 months ago

It is not possible as far as I know. I had to create a manual proxy in https://github.com/nuxt-hub/core to make it work.