erdkse / adminlte-3-react

React 18.3.1 start-up project with AdminLTE 3.2.0 template
https://erdkse.com/projects/preview/adminlte-react
MIT License
256 stars 133 forks source link

.env file doesn't work #73

Closed ZePhteven closed 1 year ago

ZePhteven commented 1 year ago

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 commented 1 year ago

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

ZePhteven commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

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

Thank's and sorry for that.