vkorobtsev-nextJs/next.config.js

20 lines
359 B
JavaScript
Raw Normal View History

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