const withBundleAnalyzer = require("@next/bundle-analyzer")({ enabled: process.env.ANALYZE === "true", }); module.exports = withBundleAnalyzer({ // your Next.js configuration webpack: (config, options) => { config.module.rules.push({ test: /\.pdf$/i, type: "asset/source", }); return config; }, async headers() { return [ { source: "/sitemap.xml.gz", headers: [ { key: "Content-Type", value: "application/gzip", }, ], }, ]; }, });