-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext.config.mjs
39 lines (32 loc) · 987 Bytes
/
next.config.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// IMPLEMENTATION OF MODULE FEDERATION FOR MICRO-FRONTEND
// import next from 'next';
// import NextFederationPlugin from '@module-federation/nextjs-mf';
// const { default: NextConfig } = next;
// const nextConfig = {
// reactStrictMode: true,
// webpack(config, options) {
// const { isServer } = options;
// config.plugins.push(
// new NextFederationPlugin({
// name: "main",
// remotes: {
// lms: `lms@http://localhost:3001/_next/static/${
// isServer ? "ssr" : "chunks"
// }/remoteEntry.js`,
// },
// filename: "static/chunks/remoteEntry.js",
// exposes: {
// "./nav": "./components/Nav.jsx",
// "./footer": "./components/Footer.jsx",
// },
// shared: {
// // whatever else
// },
// })
// );
// return config;
// },
// };
// export default nextConfig;
/** @type {import('next').NextConfig} */
const nextConfig = {};