Can't access env vars in Workers build
I'm migrating some Astro projects, that build static pages, from Cloudflare Pages to Cloudflare Workers. I'm following the migration tutotial and looking the docs. But I 'cant access the environment variables defined in wrangler.toml in process.env during or after the build.
I using the compat flags:
But in any moment i'm seeing the variables in log
Is there anything else i need to do?
I using the compat flags:
compatibility_flags = [ "nodejs_compat", "nodejs_compat_populate_process_env" ]But in any moment i'm seeing the variables in log
Is there anything else i need to do?
