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

include .env.example in root folder #1261

Open
zxt-tzx opened this issue Jan 16, 2022 · 0 comments
Open

include .env.example in root folder #1261

zxt-tzx opened this issue Jan 16, 2022 · 0 comments

Comments

@zxt-tzx
Copy link
Contributor

zxt-tzx commented Jan 16, 2022

Because npm run dev command includes env-cmd concurrently, for it to work, there needs to be a .env (or .env.js or .env.json) file in the root folder.

Solution 1: Suggest creating a .env.example file in the root folder. An attendant change might be to include the following in the .gitignore files: .env.* !.env.example

Solution 2: Don't use env-cmd and just use concurrently directly. I thought it's more common to include env variables / .env file in the backend, as opposed in the root of the folder hmm

@zxt-tzx zxt-tzx changed the title Include .env.example in root folder include .env.example in root folder Mar 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant