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
Is your feature request related to a problem? Please describe.
Currently it seems that we can use only one dotenv file (.env, see load.js) in the project. But sometimes we need to have different dotenv in one project and can use them for different environment.
Describe the solution you'd like
Load dotenv file according to current environment.
eg. .env.dev or .env.development for development, and .env.prod or .env.production for production, and .env for default.
The text was updated successfully, but these errors were encountered:
@fralonra You can specify the .env file to load on the command line e.g. yarn nuxt --dotenv .env.staging - which should give you the flexibility you might want. This works for both env and runtimeConfig.
@danielroe Any update on this? nuxt.config.ts is always picking the environment variables from .env instead of .env.development inspite of mentioning the --dotenv .env.development in package.json
Is your feature request related to a problem? Please describe.
Currently it seems that we can use only one dotenv file (.env, see load.js) in the project. But sometimes we need to have different dotenv in one project and can use them for different environment.
Describe the solution you'd like
Load dotenv file according to current environment.
eg.
.env.dev
or.env.development
for development, and.env.prod
or.env.production
for production, and.env
for default.The text was updated successfully, but these errors were encountered: