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

Environment Variables Duplication #2

Open
rwieruch opened this issue Jan 14, 2020 · 3 comments
Open

Environment Variables Duplication #2

rwieruch opened this issue Jan 14, 2020 · 3 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@rwieruch
Copy link
Owner

I think there is no way around defining env variables twice with Next.js in next.config.js and .env file. In the future, it should be possible to define these only in an .env file though.

@rwieruch rwieruch added the wontfix This will not be worked on label Jan 14, 2020
@hmmChase
Copy link

If you use the package dotenv-webpack instead of dotenv, you don't need to have them in next.config.js.

@rwieruch
Copy link
Owner Author

Oh, really? Didn't know about this. Maybe someone can create a PR for it.

@rwieruch rwieruch added enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed and removed wontfix This will not be worked on labels Jan 16, 2020
@comxd
Copy link

comxd commented Mar 26, 2020

Another package to see: https://www.npmjs.com/package/dotenv-flow-webpack

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants