-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnext-sitemap.config.js
45 lines (45 loc) · 2.09 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
/** @type {import('next-sitemap').IConfig} */
module.exports = {
siteUrl: process.env.NEXT_PUBLIC_HOSTING_URL,
generateRobotsTxt: true,
sitemapSize: 7000,
exclude: ['/404', '/ja/404', '/en/404', '/ko/404', '/zh/404', '/zh-hant-tw/404', '/server-sitemap.xml'],
additionalPaths: async (config) => [
await config.transform(config, '/ja'),
await config.transform(config, '/ja/news'),
await config.transform(config, '/ja/about'),
await config.transform(config, '/ja/community'),
await config.transform(config, '/ja/docs'),
await config.transform(config, '/ja/support/rest'),
await config.transform(config, '/en'),
await config.transform(config, '/en/news'),
await config.transform(config, '/en/about'),
await config.transform(config, '/en/community'),
await config.transform(config, '/en/docs'),
await config.transform(config, '/en/support/rest'),
await config.transform(config, '/ko'),
await config.transform(config, '/ko/news'),
await config.transform(config, '/ko/about'),
await config.transform(config, '/ko/community'),
await config.transform(config, '/ko/docs'),
await config.transform(config, '/ko/support/rest'),
await config.transform(config, '/zh'),
await config.transform(config, '/zh/news'),
await config.transform(config, '/zh/docs'),
await config.transform(config, '/zh/about'),
await config.transform(config, '/zh/community'),
await config.transform(config, '/zh/support/rest'),
await config.transform(config, '/zh-hant-tw'),
await config.transform(config, '/zh-hant-tw/news'),
await config.transform(config, '/zh-hant-tw/about'),
await config.transform(config, '/zh-hant-tw/community'),
await config.transform(config, '/zh-hant-tw/docs'),
await config.transform(config, '/zh-hant-tw/support/rest'),
await config.transform(config, '/static/playground.html'),
await config.transform(config, '/events/tomatina'),
await config.transform(config, '/events/potatina'),
],
robotsTxtOptions: {
additionalSitemaps: [`${process.env.NEXT_PUBLIC_HOSTING_URL}/server-sitemap.xml`],
},
};