Skip to content
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

support --dotenv for nuxi dev and nuxi build #14963

Closed
2 of 4 tasks
NeroThroN opened this issue Sep 19, 2022 · 3 comments
Closed
2 of 4 tasks

support --dotenv for nuxi dev and nuxi build #14963

NeroThroN opened this issue Sep 19, 2022 · 3 comments

Comments

@NeroThroN
Copy link

Describe the feature

On Nuxt2 there was a --dotenv to specify a different .env file in production, staging or development environments.

On Nuxt3 only the .env at the root directory is used and there is no configuration to use another file.

Nuxt2 doc
Nuxt3 doc

Additional information

  • Would you be willing to help implement this feature?
  • Could this feature be implemented as a module?

Final checks

@pi0 pi0 changed the title Adding --dotenv to nuxi commands support --dotenv for nuxi dev Sep 19, 2022
@pi0 pi0 changed the title support --dotenv for nuxi dev support --dotenv for nuxi dev and nuxi build Sep 19, 2022
@danielroe
Copy link
Member

Merged in nuxt/framework#7660.

@HenoTaMyJIb
Copy link

Can --dontenv support also be added to nuxi generate?

Copy link
Member

Makes sense 👍

@danielroe danielroe added the 3.x label Jan 19, 2023
@danielroe danielroe transferred this issue from nuxt/framework Jan 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants