#Cloudflare D1 + local development

4 messages · Page 1 of 1 (latest)

deft sky
#

I've got my astro site setup and running with Cloudflare D1, everything seems fine but working with it locally is a real pain.

I have to build my site, which takes a while, and then start the local server with wrangler. Doing this for every change I want to preview is very time consuming and I'm hoping someone can suggest an alternative approach.

Right now I'm running something like astro build && wrangler pages dev ./dist in to get my D1 bindings, but I'd love to be able to do like a astro dev so I can make changes to my queries, refresh the page, and see them.

rapid oracle
#

You are looking for PlatformProxy in the Adapter

deft sky
#

Adding platformProxy: { enabled: true } did it!!!! Thank you for the quick and direct response!!