We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6eb3bd5 commit c1481bbCopy full SHA for c1481bb
src/app/sitemap.tsx
@@ -0,0 +1,21 @@
1
+import { MetadataRoute } from 'next';
2
+
3
+import { MENU } from '@/constants/menu';
4
+import { METADATA } from '@/constants/metadata';
5
6
+export default function sitemap(): MetadataRoute.Sitemap {
7
+ const entries = MENU.map((menu) => ({
8
+ url: `${METADATA.url}${menu.href}`,
9
+ ...('date' in menu && { lastModified: menu.date }),
10
+ priority: 0.9,
11
+ }));
12
13
+ return [
14
+ {
15
+ url: `${METADATA.url}`,
16
+ changeFrequency: 'yearly',
17
+ priority: 1.0,
18
+ },
19
+ ...entries
20
+ ];
21
+}
0 commit comments