How to detect which environment my react app is running in? #7469
jvskriubakken
started this conversation in
Show and Tell
Replies: 1 comment
-
|
You have access to process.env.NODE_ENV in React apps https://nx.dev/l/r/guides/environment-variables |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
how can i know which environment I am running in?
How can my react app know wether it is running a production build at a deployed server or have been started with nx serve?
Beta Was this translation helpful? Give feedback.
All reactions