kongaskristjan
kongaskristjan
CDCloudflare Developers
Created by kdamp on 11/3/2023 in #pages-help
Deployment Fails with @sveltejs/adapter-cloudflare
Thanks for the quick answer, it pointed in the right direction. I found another post that discusses the issue of locally connecting to the database: https://discord.com/channels/595317990191398933/1126398478147407965/1126399469857026079 Basically, if I run this in one terminal
npx vite build --watch
npx vite build --watch
and this in another terminal
npx wrangler pages dev .svelte-kit/cloudflare --live-reload --d1=DB
npx wrangler pages dev .svelte-kit/cloudflare --live-reload --d1=DB
I suddenly gain access to envs, and can connect to a local database.
8 replies
CDCloudflare Developers
Created by kdamp on 11/3/2023 in #pages-help
Deployment Fails with @sveltejs/adapter-cloudflare
The event.platform variable is for some reason undefined. Even if I tried using the example provided here https://developers.cloudflare.com/d1/examples/d1-and-sveltekit/, I still run into a very similar problem, that platform is undefined. Did you find any solutions yet @kdamp ?
8 replies