#Deployed website unable to find environment variables set on Worker

2 messages · Page 1 of 1 (latest)

trim charm
#

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?

#

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

Nuxt is configured with sensible defaults to make you productive.