gZip compression in next.js without using any backend

I want to optimise the next.js application. Which is static content site, no api calls there.
Want to implement gzip compression init.
Can any one provide how we can do it?