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
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
-
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