DEV Community

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

Collapse
lukeshiru profile image
LUKESHIRU

I recommend you use globalThis instead of window, which is actually more "global" than window. More data here.

Collapse
eslynn profile image
lynn Author

Nice! Thanks for the feedback!