const withBundleAnalyzer = require("@next/bundle-analyzer")({ enabled: process.env.ANALYZE === "true", }); module.exports = withBundleAnalyzer({ // your Next.js configuration async headers() { return [ { source: "/sitemap.xml.gz", headers: [ { key: "Content-Type", value: "application/gzip", }, ], }, ]; }, });