Skip to content

Conditionally setup proxy based on environment variable #742

Answered by raquelhortab
raquelhortab asked this question in Q&A
Discussion options

You must be logged in to vote

As suspected, it wasn't a problem with CRA but it wasn't a problem with the proxy either. The environment variable was not available, I had to set it right before npm start:

ENVIRONMENT_MODE=$ENVIRONMENT_MODE npm start

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@raquelhortab
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by raquelhortab
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