Aug 3, 2024
nginx to route requests./home or /checkout reloads the app each time.Setup Applications
Main and Shop.Main app contains shared components.Configure Webpack Module Federation
next.config.js for both applications.Shop app and expose shared components (header and footer).Main app and set up to dynamically import shared components.Dynamically Import Components
Main in Shop.Create and Expose Additional Pages
catalog page in both apps and expose it through module federation.Main and Shop without reloading.Deploying Static Assets to S3
Shop application for static asset export.Main app to pull components from the S3 URL instead of local host.