[fix] fix sitemap error
This commit is contained in:
parent
54b9389e63
commit
c6c7284e18
3 changed files with 14 additions and 12 deletions
|
|
@ -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",
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
},
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue