#Environment variable not found on run in mode production
33 messages · Page 1 of 1 (latest)
running development
dot cmd running development mode
Browser log
realize that have value for my public variable myValue
but in production mode
Running production mode
dot cmd running production mode
Browser log
not see the value
but he exist in env by cmd
nuxt.config
deploy.js
I use nitro preset node because a I need change port for production, I not found solution for this using preset default
If someone can help, I appreciete ❤️
Environment variable not found on run in mode production
I solved
this video help me
🤯 Throughout my projects, consultancies and code reviews I came across lots of interesting findings - also with regards to Nuxt's runtimeConfig feature. Repeatedly I noticed ONE big mistake though which you might do at this very moment in your project. In this video, explain what it is, why you shouldn't do it and how to use runtimeConfig correc...
<@&747472278664773714> I believe this about override value using NUXT_PUBLIC should be in docs of runtimeConfig
PR welcome 👍
okay, I will, thanks.
you are very welcome! Glad I could help 🙏

FYI I tried to cover the "overriding" behaviour in https://github.com/nuxt/nuxt/pull/24612 - but yes, feel free to adapt/reword if something else resonates better or is more clear ☺️