Brotli compression in next.js
Hey guys
I'm working on brotli compression in next.js and I need your help
Problem: The compression works fine, I can see the [filename-hash].js.br files in the _next/chunks. But when doing
npm start
, the production build doesn't have the .br chunk files.
Next.config.js
middleware.js
Note: I'm using next.js version 13.4.6, and I'm NOT using app router. And i don't need server.js or node.js suggession. Just wanted to handle it in NextRequest and NextResponse itself.
(Thanks In Advance)1 Reply
Can you provide the repository for this project? I cannot personally help you because I never used those tools but someone that did will most likely need more than the 2 snippets of code you've provided