Deployed website unable to find environment variables set on Worker

So my website is unable to access enviorment variables. When I set enviorment variables on my computer and run the app locally (without wrangler), it works correctly. But whenever I deploy my app to workers or test it with wrangler, it can't access the enviorment variables. How would I fix this?
2 Replies
1
15mo ago
So my website is built with Nuxt and I am using Nuxt's runtime config feature. The part I am having trouble with is the feature where config values are loaded from enviorment variables. As stated previously, it works fine outside of workers and wrangler. More info here
Nuxt
Configuration · Get Started with Nuxt
Nuxt is configured with sensible defaults to make you productive.
1
15mo ago
Turns out this is a issue with Nuxt itself. For those having issues with this, check this issue: https://github.com/nuxt/nuxt/issues/14011
GitHub
runtimeConfig not parsing environment variables in cloudflare mode ...
Environment Operating System: Linux Node Version: v16.15.0 Nuxt Version: 3.0.0-rc.3 Package Manager: yarn@3.2.0 Builder: vite User Config: runtimeConfig Runtime Modules: - Build Modules: - Reproduc...