DEV Community

Discussion on: How to dynamically change your React Environment variables without re-building

Collapse
 
eslynn profile image
lynn • Edited

Hello! Sorry for the late reply. I've updated the instructions to show how to use it with Windows!

# for windows
set REACT_APP_COLOR=navy&& set REACT_APP_TEXT=Navy Background&& npx react-inject-env set
Enter fullscreen mode Exit fullscreen mode
Collapse
 
yasintaab profile image
yass🍉

Hello, where must i put this command bash at windows? is that inside folder code? or inside build output folder?