You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have 2 environment files .env and .env.prod. According to the docs, I can pass the --dotenv flag to specify a different env file to load for nuxt preview command - https://nuxt.com/docs/api/commands/preview
But it does not seem to work.
I have tried multiple variants of this and it always loads the .env file and not my .env.prod file.
Environment
Stackblitz
Reproduction
https://stackblitz.com/edit/nuxt-starter-qwahbu?file=package.json
Describe the bug
I have 2 environment files
.env
and.env.prod
. According to the docs, I can pass the--dotenv
flag to specify a different env file to load for nuxt preview command - https://nuxt.com/docs/api/commands/previewBut it does not seem to work.
I have tried multiple variants of this and it always loads the
.env
file and not my.env.prod
file.Here is what I tried (see reproduction):
Nothing worked.
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: