Accessing remote D1 database during local dev with SvelteKit

I am building a SvelteKit site that is deployed to CF pages, and uses a D1 database. However, working on it is very painful due to not being able to test changes locally without the DB. Creating a mock database is not sufficient here, so it seems like I cannot simply use wrangler pages dev to get around the issue. How can I improve the development experience, as I would rather not have to deploy to production over and over again just to test tiny code changes? Previously I had been using cf-bindings-proxy but that appears to not be compatible with node 22, so I will need to either fix that or find an alternative.
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server