nextjs-ssr icon indicating copy to clipboard operation
nextjs-ssr copied to clipboard

Rewrite server remote global config registration

Open ScriptedAlchemy opened this issue 3 years ago • 0 comments

workaround here: https://github.com/module-federation/nextjs-ssr/pull/17

global of remote config from process.env and from other remotes needs to be merged together all the time, then merge runtime remotes that are loaded incase there's something missing. This is because webpakc boots remotes early on before I have time to register the global sometimes, it also seems like my process.env.REMOTE_CONFIG is not applied to the main app with define plugins on hot === true (in streaming plugin)

Remotes needs to register more reliably since loaded remotes depend on their parent config to tell them who and where they are

ScriptedAlchemy avatar Mar 19 '22 01:03 ScriptedAlchemy