GoodGoodMan
CDCloudflare Developers
•Created by GoodGoodMan on 7/6/2023 in #pages-help
How can i use d1 locally(for test) on sveltekit?
Then, should i use this method?
---
vite build --watch
- this creates the cloudflare directories in the .svelte-kit directory
- vite dev doesn't seem to create the cloudflare directories so I've used vite build
wrangler pages dev .svelte-kit/cloudflare --live-reload
- this starts the app
---
https://stackoverflow.com/questions/74904528/how-to-run-sveltekit-cloudflare-page-locally
8 replies