-
Notifications
You must be signed in to change notification settings - Fork 0
/
next-sitemap.config.js
executable file
·51 lines (50 loc) · 1.38 KB
/
next-sitemap.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// Sitemap Generator
// https://www.npmjs.com/package/next-sitemap
module.exports = {
siteUrl: "https://www.hankyo.app",
changefreq: "weekly",
priority: 0.8,
sitemapSize: 5000,
generateRobotsTxt: true,
exclude: ["/thank-you", "/thank-you/", "/builders", "/builders/*", "/components", "/components/*", "/fonts", "/fonts/*", "/layouts", "/layouts/*", "/pages", "/pages/*", "/styles", "/styles/*", "/svgs", "/svgs/*", "/_app", "/_document", "/_error", "/404", "/404/"],
alternateRefs: [],
// Default transformation function
transform: async (config, path) => {
return {
loc: path, // => this will be exported as http(s)://<config.siteUrl>/<path>
changefreq: config.changefreq,
priority: config.priority,
lastmod: config.autoLastmod ? new Date().toISOString() : undefined,
alternateRefs: config.alternateRefs ?? []
}
},
robotsTxtOptions: {
policies: [
{
userAgent: "*",
allow: "/"
},
{
userAgent: "*",
disallow: [
"/thank-you",
"/thank-you/",
"/builders",
"/builders/*",
"/components",
"/components/*",
"/fonts",
"/fonts/*",
"/layouts",
"/layouts/*",
"/pages",
"/pages/*",
"/styles",
"/styles/*",
"/svgs",
"/svgs/*",
]
}
]
}
}