nextjs-nx-module-federation
nextjs-nx-module-federation copied to clipboard
Sharing pages automatically bewteen apps
trafficstars
Hi @brunos3d, thanks for the lovely article and example. I am new to module-federation and am trying to understand how to use it with Next.js. Do you happen to know how to share routes between apps, i.e. when I create a new route, say /cart in the checkout app, how can I share this route with store without exposing the page as a component, then creating a new page manually in store and importing that component?
I've checked out the nextjs-v13 example by @ScriptedAlchemy, but when I try to use that with Next.js App Router + TypeScript, the createFederatedCatchAll function doesn't seem to work and I can't wrap my head around the errors.