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

Consider supporting multiple scoped env files #68

Open
pi0 opened this issue Mar 22, 2023 · 2 comments
Open

Consider supporting multiple scoped env files #68

pi0 opened this issue Mar 22, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@pi0
Copy link
Member

pi0 commented Mar 22, 2023

Frameworks such as vite, support more than one env file like .env.local and .env.prod.

This is heavily discouraged by 12 factor and dotenv package however this is a common usage for FE projects and now that we support env scoped options, kinda makes sense to rethink about cons/pros and possibly supporting.

@michael-bouvy
Copy link

Great! Is there a way c12's setupDotEnv function could also be called in production builds, as it is already for dev and preview modes?

@pi0
Copy link
Member Author

pi0 commented Mar 22, 2023

@michael-bouvy ~> unjs/nitro#1079

@pi0 pi0 added the enhancement New feature or request label Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants