Three things to note here
-
the variable should be prefixed with
REACT_APP_
eg:
REACT_APP_WEBSITE_NAME=hello
-
You need to restart the server to reflect the changes.
-
Make sure you have the .env file in your root folder(same place where you have your package.json) and NOT in your src folder.
After that you…
Top comments (0)