Cloudflare Pages environment variables undefined

I deployed a static SvelteKit test site to Cloudflare Pages with environment variables set up in Pages settings. But when Cloudflare Pages builds the project it looks like it doesn’t add env variables to the project. Is there a way to make sure Pages include my env variables at build time?

FYI, I deployed the exact same project to Netlify with the same env variables and it works fine over there. Netlify does include variables at build time.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.