Env variable confusion
Hi all. Just migrated from pages to workers. Some confusion regarding the env variable settings.
1. I set up the build time variables, they are working properly
2. I set up the other envs on dashboard. Then set my wrangler.jsonc to have "keep_vars": true
3. After deployment, seems that some of the envs are available, but some are not? And they are not just differences between NEXT_PUBLIC or non NEXT_PUBLIC so seems to be bit random. If it matters i have a pretty big list of env variables.
Is the best way to add them all to secret manager and reference them solely from wrangler.jsonc? Also, are wrangler.jsonc's env variable available during build so i dont have to add them to dashboard?
Thanks!
1 Reply
I did some more digging, seems its becaus the next public envs are not properly handled? Does worker support that?