-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathnext-sitemap.config.js
More file actions
56 lines (54 loc) · 1.56 KB
/
next-sitemap.config.js
File metadata and controls
56 lines (54 loc) · 1.56 KB
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
/** @type {import('next-sitemap').IConfig} */
module.exports = {
siteUrl: "https://liquidops.io",
generateRobotsTxt: true,
changefreq: "daily",
priority: 1,
sitemapSize: 5000,
exclude: ["/"],
additionalPaths: async (config) => {
const basePaths = [
{
loc: "/earn",
changefreq: "daily",
priority: 0.9,
lastmod: new Date().toISOString(),
},
{
loc: "/markets",
changefreq: "daily",
priority: 0.8,
lastmod: new Date().toISOString(),
},
// the tickers are 0.7
];
const TOKENS_TO_SHOW_ON_GOOGLE = [
{ ticker: "USDA", name: "Astro USD" },
{ ticker: "wAR", name: "Wrapped Arweave" },
{ ticker: "wUSDC", name: "Wrapped USD Circle" },
{ ticker: "wUSDT", name: "Wrapped USD Tether" },
{ ticker: "wETH", name: "Wrapped Ethereum" },
{ ticker: "vAR", name: "Vento Arweave" },
{ ticker: "vUSDC", name: "Vento USD Circle" },
{ ticker: "vDAI", name: "Vento DAI" },
{ ticker: "vETH", name: "Vento Ethereum" },
];
// Generate paths for all supported tokens
const tokenPaths = TOKENS_TO_SHOW_ON_GOOGLE.map((token) => ({
loc: `/${token.ticker}`,
changefreq: "daily",
priority: 0.7,
lastmod: new Date().toISOString(),
}));
// Combine both arrays and return
return [...basePaths, ...tokenPaths];
},
transform: async (config, path) => {
return {
loc: path,
changefreq: config.changefreq,
priority: config.priority,
lastmod: new Date().toISOString(),
};
},
};