nextjs-ssr
nextjs-ssr copied to clipboard
Rewrite server remote global config registration
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