-
Notifications
You must be signed in to change notification settings - Fork 191
/
next-sitemap.js
79 lines (78 loc) · 1.92 KB
/
next-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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
require('dotenv-flow').config()
module.exports = {
siteUrl: process.env.NEXT_PUBLIC_DEPLOYMENT_URL,
changefreq: 'daily',
priority: 0.7,
sitemapSize: 5000,
generateRobotsTxt: true,
exclude: [
'/purchase/*',
'/discord/*',
'/discord',
'/_next',
'/purchase',
'/404',
'/ask',
'/blank',
'/confirm/membership',
'/login',
'/logout',
'/redirect',
'/sale',
'/invoices',
'/server-sitemap.xml',
],
robotsTxtOptions: {
policies: [
{
userAgent: 'Twitterbot',
disallow: '',
},
{
userAgent: 'ClaudeBot',
disallow: ['/q'],
},
{
userAgent: 'GPTBot',
disallow: ['/q'],
},
{
userAgent: '*',
allow: ['/'],
disallow: [
'/discord',
'/purchase',
'/404',
'/ask',
'/blank',
'/confirm',
'/login',
'/logout',
'/redirect',
'/sale',
'/invoices',
],
},
],
additionalSitemaps: [
'https://egghead-sitemaps.s3.amazonaws.com/sitemaps/sitemap.xml.gz',
'https://egghead.io/server-sitemap.xml',
'https://egghead.io/tags-sitemap-0.xml',
'https://egghead.io/tags-sitemap-1.xml',
'https://egghead.io/tags-sitemap-2.xml',
'https://egghead.io/tags-sitemap-3.xml',
'https://egghead.io/tags-sitemap-4.xml',
'https://egghead.io/tags-sitemap-5.xml',
'https://egghead.io/tags-sitemap-6.xml',
'https://egghead.io/tags-sitemap-7.xml',
'https://egghead.io/tags-sitemap-8.xml',
'https://egghead.io/tags-sitemap-9.xml',
'https://egghead.io/tags-sitemap-10.xml',
'https://egghead.io/tags-sitemap-11.xml',
'https://egghead.io/tags-sitemap-12.xml',
'https://egghead.io/tags-sitemap-13.xml',
'https://egghead.io/tags-sitemap-14.xml',
'https://egghead.io/tags-sitemap-15.xml',
],
},
}