diff --git a/README.md b/README.md index 6be7d290eba..cfa577c2150 100644 --- a/README.md +++ b/README.md @@ -44,7 +44,7 @@ This repository is to showcase examples of how Webpack 5's new Module Federation - [x] [Angular Universal](./angular-universal-ssr/README.md) — Remote and Host app with SSR, lazy modules and components. - [x] [NextJS Sidecar Build](./nextjs-sidecar/README.md) — Sidecar build to enable module-federation alongside Next codebases. - [x] 💰[NextJS](./nextjs/README.md) — Operation, with [nextjs-mf](https://app.privjs.com/buy/packageDetail?pkg=@module-federation/nextjs-mf). -- [x] 💰[NextJS SSR](./nextjs-ssr/README.md) — Powered by software streams, with [nextjs-ssr](https://app.privjs.com/buy/packageDetail?pkg=@module-federation/nextjs-ssr) +- [x] 💰[NextJS SSR](./nextjs-ssr/README.md) — Powered by software streams, with [nextjs-ssr](https://app.privjs.com/buy/packageDetail?pkg=@module-federation/nextjs-ssr) - [x] [Building A Plugin-based Workflow Designer With Angular and Module Federation](https://github.com/manfredsteyer/module-federation-with-angular-dynamic-workflow-designer) — External Example - [x] [Vue.js](./vue3-demo/README.md) — Simple host/remote (render function / sfc) example using Vue 3.0. - [x] [Vue 2 in Vue 3](./vue2-in-vue3/README.md) — Vue 3 application loading remote Vue 2 component. diff --git a/nextjs-ssr/checkout/async-pages/app.js b/nextjs-ssr/checkout/async-pages/app.js index 910c55f36e2..217d14b3df1 100644 --- a/nextjs-ssr/checkout/async-pages/app.js +++ b/nextjs-ssr/checkout/async-pages/app.js @@ -1,4 +1,4 @@ -import App from "next/app"; +import App from 'next/app'; import dynamic from 'next/dynamic'; const Nav = dynamic(() => { return import('home/nav'); @@ -13,9 +13,8 @@ function MyApp({ Component, pageProps }) { ); } - MyApp.getInitialProps = async ctx => { - const appProps = await App.getInitialProps(ctx); - return appProps -} + const appProps = await App.getInitialProps(ctx); + return appProps; +}; export default MyApp; diff --git a/nextjs-ssr/checkout/package.json b/nextjs-ssr/checkout/package.json index bfc280c341e..380933c322c 100644 --- a/nextjs-ssr/checkout/package.json +++ b/nextjs-ssr/checkout/package.json @@ -9,7 +9,7 @@ }, "dependencies": { "nextjs-shared": "*", - "@module-federation/nextjs-ssr": "0.1.0-rc.5", + "@module-federation/nextjs-ssr": "0.1.0-rc.6", "lodash": "4.17.21", "next": "12.1.0", "next-compose-plugins": "^2.2.1", diff --git a/nextjs-ssr/home/async-pages/_app.js b/nextjs-ssr/home/async-pages/_app.js index 950887cf2cc..4de993d237c 100644 --- a/nextjs-ssr/home/async-pages/_app.js +++ b/nextjs-ssr/home/async-pages/_app.js @@ -1,18 +1,17 @@ -import App from "next/app"; +import App from 'next/app'; import Nav from '../components/nav'; -function MyApp({Component, pageProps}) { - return ( - <> -