Next.js Discord

Discord Forum

Nginx, brotli and next.js

Unanswered
Wuchang bream posted this in #help-forum
Open in Discord
Wuchang breamOP
Hey, did anyone achieve brotli compression with next.js files? I only see brotli on html pages, css, javascript files have no compression. I have disabled compression in next.js config.

1 Reply

Wuchang breamOP
"For example, you're using nginx and want to switch to brotli, set the compress option to false to allow nginx to handle compression."
https://nextjs.org/docs/pages/api-reference/config/next-config-js/compress#disabling-compression
But it looks like nginx doesnt compress when it acts like a proxy to next.js app