[fix] fix sitemap error

This commit is contained in:
Alvalen 2023-09-06 22:05:49 +07:00
parent 54b9389e63
commit c6c7284e18
3 changed files with 14 additions and 12 deletions

View file

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