Skip to content

Commit ec5e1f5

Browse files
committed
test: make middleware fixture produce chunked middleware
1 parent b352918 commit ec5e1f5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Diff for: tests/fixtures/middleware/next.config.js

+7
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ const nextConfig = {
44
eslint: {
55
ignoreDuringBuilds: true,
66
},
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+
},
714
}
815

916
module.exports = nextConfig

0 commit comments

Comments
 (0)