How do i use cloudflare pages env variables in a sveltekit project

process.env.VALUE is giving errors (process not found). And $env/static/public is not retrieving the env vars when the app is deployed to cloudflare pages
2 Replies
Isaac McFadyen
See https://kit.svelte.dev/docs/modules#$env-dynamic-private and https://kit.svelte.dev/docs/modules#$env-dynamic-public Note that you'll only be able to see the public environment variables in client-side if you prefix them with PUBLIC_
Gagan Suie
Gagan Suie2y ago
fantastic! it worked! thank you!