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

dollar sign substitution is not working if the .env file is located in a custom path #362

Open
KooWeiHao opened this issue Jun 6, 2023 · 0 comments

Comments

@KooWeiHao
Copy link

In a react project

  • An environment file named as .env.uat is located at ./env.
  • In the environment file, there's a variable with dollar sign value. Eg: REACT_APP_TEST=${TEST}
  • The "start" script is having the following command, "env-cmd -f ./env/.env.uat react-scripts start".
  • Run the "start" script as follow, "TEST=HELLO npm run start".
  • However, the value shown in the app is "${TEST}", instead of "Hello".
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

1 participant