environmental variables to pass by nodejs to react-app #611
-
Hi there, Is it correct information explained in this answer of stackoverflow? but I cannot access any of them from debugger in devtool. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
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 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. |
Beta Was this translation helpful? Give feedback.
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.