Reputation: 9
In the application I'm working on, we fetch the app constants and env configs from the server. How can these values be accessed across all the reducers?
Upvotes: 0
Views: 59
Reputation: 4166
I usually template the env vars into the main html body inside a script tag inside an object called __env. I then import them through a window.__env in my js files.
Upvotes: 0