Skip to content

Commit

Permalink
test: make middleware fixture produce chunked middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
pieh committed Aug 26, 2024
1 parent b352918 commit ec5e1f5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/fixtures/middleware/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ const nextConfig = {
eslint: {
ignoreDuringBuilds: true,
},
webpack: (config) => {
// this is a trigger to generate multiple `.next/server/middleware-[hash].js` files instead of
// single `.next/server/middleware.js` file
config.optimization.splitChunks.maxSize = 100_000

return config
},
}

module.exports = nextConfig

0 comments on commit ec5e1f5

Please sign in to comment.