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

How to use the .env file? #46

Closed
sanbornsen opened this issue Jun 30, 2020 · 1 comment
Closed

How to use the .env file? #46

sanbornsen opened this issue Jun 30, 2020 · 1 comment

Comments

@sanbornsen
Copy link

I can see there is .env.local and .env.production. I want to use the env variables in my project with process.en.{name}. If I add a new variable to .env and npm start then it doesn't work. What do I need to configure to get it worked?

@Can-Sahin
Copy link
Member

https://create-react-app.dev/docs/adding-custom-environment-variables

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

No branches or pull requests

2 participants