-
Notifications
You must be signed in to change notification settings - Fork 0
/
sitemap.js
28 lines (28 loc) · 962 Bytes
/
sitemap.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
module.exports = {
siteUrl: 'https://letmeask-nyctibiusvii.vercel.app',
changefreq: 'daily',
priority: 0.7,
sitemapSize: 5000,
generateRobotsTxt: true,
exclude: ['/__tests__'],
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: ['/', /*'/settings', '/room',*/ '/room/new', '/rooms', '/rooms/[id]', /*'/admin',*/ '/admin/rooms/[id]'],
disallow: ['/__tests__']
}
]
}
}