How to access env variables in React with ansible

Viewed 184

I have docker container with a react app and it used in docker hub registry, after that my ansible script deploys it to server. I need to pass env variables to react app.

1 Answers

You can pass the values in process.env or .env.local before creating the build using react's webpack.

Related