-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
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
nuxt build
changes NODE_ENV
#19819
Comments
This was a required workaround we needed to do because tools such as postcss(plugins) was having unexpected behavior when WHat is your main usage for |
I agree with @pi0. I don't think we can support alternative |
@pi0 Ah ok. I'm using three env files ( |
@rutgerbakker95 Nuxt does not have native support for reading |
@danielroe Ok, I'll try to make it work with |
Environment
Darwin
v18.14.1
3.3.1
2.3.1
yarn@1.22.19
vite
srcDir
,runtimeConfig
,vite
,modules
,i18n
,tailwindcss
,apollo
@nuxtjs/i18n@8.0.0-beta.10
,@nuxtjs/tailwindcss@6.6.0
,@nuxtjs/apollo@5.0.0-alpha.5
-
Reproduction
[WARN] Changing
NODE_ENV
fromstaging
toproduction
, to avoid unintended behavior.Describe the bug
Is there a way to prevent Nuxt from automatically changing
NODE_ENV
toproduction
when I use exportNODE_ENV=staging
in my pipeline?Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: