-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathnext-sitemap.config.js
100 lines (94 loc) · 1.91 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
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
const baseUrl = "https://www.growthepie.xyz";
// for www.growthepie.xyz & dev.growthepie.xyz
const gtpMain = {
siteUrl: "https://www.growthepie.xyz",
generateRobotsTxt: true,
exclude: [
"/server-sitemap.xml",
"/blog",
"/api/*",
"/embed/*",
"/embed",
"/trackers/*",
"/blockspace/*",
"/fees",
"/helpers",
"/fees-explainer",
"/contracts",
"/economics",
"/scroll",
"/labels",
"/refactor",
],
robotsTxtOptions: {
exclude: ["/server-sitemap.xml"],
additionalSitemaps: [`https://www.growthepie.xyz/server-sitemap.xml`],
},
};
// for fees.growthepie.xyz & dev.fees.growthepie.xyz
const gtpFees = {
siteUrl: "https://fees.growthepie.xyz",
generateRobotsTxt: true,
exclude: [
"/blog",
"/api/*",
"/embed/*",
"/embed",
"/trackers/*",
"/blockspace/*",
"/fees",
"/contracts",
"/contributors",
"/imprint",
"/privacy-policy",
"/server-sitemap.xml",
"/helpers",
"/fees-explainer",
"/contracts",
"/economics",
"/scroll",
"/labels",
"/refactor",
],
robotsTxtOptions: {
exclude: ["/server-sitemap.xml"],
},
};
// for labels.growthepie.xyz & dev.labels.growthepie.xyz
const gtpLabels = {
siteUrl: "https://labels.growthepie.xyz",
generateRobotsTxt: true,
exclude: [
"/blog",
"/api/*",
"/embed/*",
"/embed",
"/trackers/*",
"/blockspace/*",
"/fees",
"/contracts",
"/contributors",
"/imprint",
"/privacy-policy",
"/server-sitemap.xml",
"/helpers",
"/fees-explainer",
"/contracts",
"/economics",
"/scroll",
"/labels",
"/refactor",
],
robotsTxtOptions: {
exclude: ["/server-sitemap.xml"],
},
};
let exportOjb = gtpMain;
if (baseUrl.includes("labels.")) {
exportOjb = gtpLabels;
}
if (baseUrl.includes("fees.")) {
exportOjb = gtpFees;
}
/** @type {import('next-sitemap').IConfig} */
module.exports = exportOjb;