Replies: 1 comment
-
You can dynamically inject the environment variable by modifying the remotes configuration inside NextFederationPlugin:
|
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.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using
next-runtime-env@1.x
, as we are limited in using a Pages Router. I need to use module federation - and the urls to fetch out to inside the config need to be different for different environments.However, when trying to use this - I can see that the window.__ENV is populated, as is the __ENV.js file, but this never works. Any ideas why?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions