-
-
Notifications
You must be signed in to change notification settings - Fork 267
Expand file tree
/
Copy pathnext-sitemap.config.ts
More file actions
36 lines (33 loc) · 886 Bytes
/
next-sitemap.config.ts
File metadata and controls
36 lines (33 loc) · 886 Bytes
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
import type { IConfig } from 'next-sitemap';
// eslint-disable-next-line unicorn/no-zero-fractions
const priorities: Record<string, number> = { '/': 1.0, '/join': 1.0 };
const config: IConfig = {
siteUrl: 'https://www.operationcode.org',
generateIndexSitemap: false,
priority: 0.8,
changefreq: 'weekly',
transform: async (config, path) => {
return {
loc: path,
changefreq: config.changefreq,
priority: priorities[path] ?? config.priority,
lastmod: config.autoLastmod ? new Date().toISOString() : undefined,
alternateRefs: config.alternateRefs ?? [],
};
},
exclude: [
'/api/__coverage__',
'/profile/change_password',
'/profile',
'/profile/update',
'/thank_you',
'/404',
'/_app',
'/_document',
'/_error',
'/join/form',
'/join/success',
'/confirm_email',
],
};
export default config;