import React, { Suspense, lazy } from 'react'; import Head from 'next/head'; import CheckoutTitle from 'checkout/CheckoutTitle'; import ButtonOldAnt from 'checkout/ButtonOldAnt'; // const CheckoutTitle = lazy(() => import('checkout/CheckoutTitle')); // const ButtonOldAnt = lazy(() => import('checkout/ButtonOldAnt')); const WebpackSvgRemote = lazy(() => import('shop/WebpackSvg').then((m) => { return m; }), ); const WebpackPngRemote = lazy(() => import('shop/WebpackPng')); const Home = () => { return ( <> Home

This is SPA combined from 3 different nextjs applications.

They utilize omnidirectional routing and pages or components are able to be federated between applications.

You may open any application by clicking on the links below:

Federation test cases

Test case Expected Actual
✅ Loading remote component (CheckoutTitle) from localhost:3002
lazy(()=>import('checkout/CheckoutTitle'))

This title came from checkout with hooks data!!!

✅ Load federated component from checkout with old antd version [Button from antd@5.18.3]
✅ Loading remote component with PNG image from localhost:3001
(check publicPath fix in image-loader)
✅ Loading remote component with SVG from localhost:3001
(check publicPath fix in url-loader)

Other problems to fix:

); }; export default Home;