We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b352918 commit ec5e1f5Copy full SHA for ec5e1f5
tests/fixtures/middleware/next.config.js
@@ -4,6 +4,13 @@ const nextConfig = {
4
eslint: {
5
ignoreDuringBuilds: true,
6
},
7
+ webpack: (config) => {
8
+ // this is a trigger to generate multiple `.next/server/middleware-[hash].js` files instead of
9
+ // single `.next/server/middleware.js` file
10
+ config.optimization.splitChunks.maxSize = 100_000
11
+
12
+ return config
13
+ },
14
}
15
16
module.exports = nextConfig
0 commit comments