We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Thanks for your work on Nuxt ❤️
nuxt.config.js
env: { apiBaseUrl: process.env.API_BASE_URL || 'http://localhost:3000', },
API_BASE_URL=somethingYouWantChanged nuxt generate
API_BASE_URL=aNewValue nuxt generate
context.apiBaseUrl === 'aNewValue'
context.apiBaseUrl !== 'aNewValue' because context.apiBaseUrl === 'somethingYouWantChanged'
context.apiBaseUrl !== 'aNewValue'
context.apiBaseUrl === 'somethingYouWantChanged'
How-To do in the meantime? Just disable the generate cache in nuxt.config.js:
generate: { // cache doesn't play well with environment variables that can change! cache: false, },
The text was updated successfully, but these errors were encountered:
process.env
nuxt.config
Successfully merging a pull request may close this issue.
Versions
Love words
Thanks for your work on Nuxt ❤️
Reproduction
Additional Details
Steps to reproduce
nuxt.config.js
, say:API_BASE_URL=somethingYouWantChanged nuxt generate
API_BASE_URL=aNewValue nuxt generate
What is Expected?
context.apiBaseUrl === 'aNewValue'
What is actually happening?
context.apiBaseUrl !== 'aNewValue'
becausecontext.apiBaseUrl === 'somethingYouWantChanged'
Bonus
How-To do in the meantime? Just disable the generate cache in
nuxt.config.js
:Thanks pic
The text was updated successfully, but these errors were encountered: