You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make sure you are using `mini-css-extract-plugin@2` - version 2 supports resolving assets through `publicPath:'auto'`
114
134
115
-
## Options
135
+
---
136
+
## Configuration Options
116
137
117
138
```js
118
139
constremotes= (isServer) => {
@@ -154,7 +175,7 @@ withFederatedSidecar(
154
175
}
155
176
);
156
177
```
157
-
178
+
---
158
179
## Demo
159
180
160
181
You can see it in action here: https://github.com/module-federation/module-federation-examples/tree/master/nextjs-ssr
@@ -392,6 +413,7 @@ class MyDocument extends Document {
392
413
exportdefaultMyDocument;
393
414
```
394
415
416
+
---
395
417
## Configuring Pages for SSR
396
418
397
419
To enable SSR for pages, you will need to create an async bootstrap layer for each page and the `_app` file.
@@ -465,6 +487,7 @@ export default Home;
465
487
466
488
```
467
489
490
+
---
468
491
## Dynamic Routing between applications
469
492
470
493
To enable dynamic routes from another Next.js application, you will need to create a `[...slug].js` file in the `pages` directory as the async bootstrap file and one in the `async-pages` directory to handle the `createFederatedCatchAll` method.
0 commit comments