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

Passing environment variable to React app #36

Open
sfali opened this issue Feb 17, 2021 · 1 comment
Open

Passing environment variable to React app #36

sfali opened this issue Feb 17, 2021 · 1 comment

Comments

@sfali
Copy link

sfali commented Feb 17, 2021

Hi There,

Is there way to pass environment variables to React app? In our application we need to pass an environment variable to React app. Usually in React app the environment variable must prefix REACT_APP_, but passing variable at run time doesn't work.
There is option to have environment specific files but then you need different Docker image for each application.

Any solution to this your mind?

Regards,

Syed

@ptrdom
Copy link
Member

ptrdom commented May 10, 2022

Probably the best solution is adding a new sbt setting that would allow passing these variables to underlying npm commands. Should be easily doable.

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