Skip to content

environmental variables to pass by nodejs to react-app #611

Answered by JamesIves
nikonov91-dev asked this question in Q&A
Discussion options

You must be logged in to vote

It looks like what you're trying to do is modify your pages build script based on an environment variable, the build step that occurs before the deployment isn't handled by this action.

In the Chrome console process.env will be undefined as the environment variables are only defined within the workflow, once your page is built and deployed they are no longer accessible.

This question would be better suited for StackOverflow as it doesn't really pertain to this project. If you're interested in learning more about how environment variables work and why they are used in some projects I'd recommend checking out this article.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by JamesIves
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants