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

.env file doesn't work #73

Closed
ZePhteven opened this issue Feb 3, 2023 · 4 comments
Closed

.env file doesn't work #73

ZePhteven opened this issue Feb 3, 2023 · 4 comments

Comments

@ZePhteven
Copy link

Hi,

The .env file (I tried other declinations, like .env.local, .env.development) doest seems to work.

Even the process.env.REACT_APP_USERS_API_URL you provided is undefined.

Is there something I'm missing ?

Thx

@erdkse
Copy link
Owner

erdkse commented Feb 3, 2023

there is no .env file required to run the application. Do you want to use it for your purposes?

@ZePhteven
Copy link
Author

Oh, yes sorry, there is a .env.example wich I tried to use. I'm new to react I understood that this was the proper way to store env values.

It's just that I tried multiples things, like renaming it and I have still no process.env.

I don't know, maybe it's not related to you project, I was wondering.

@erdkse
Copy link
Owner

erdkse commented Feb 3, 2023

yeah, this project uses default configurations of CRA, you can find the documentation here => https://create-react-app.dev/docs/adding-custom-environment-variables/

@ZePhteven
Copy link
Author

Ok, even though I tried everything. I might be missing something.

Thank's and sorry for that.

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