Skip to content

Commit 41d2634

Browse files
committed
feat: implement sitemap generation in TypeScript and remove XML file
1 parent 7ea1ae5 commit 41d2634

File tree

2 files changed

+38
-9
lines changed

2 files changed

+38
-9
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
import { MetadataRoute } from "next"
2+
3+
export default function sitemap(): MetadataRoute.Sitemap {
4+
const baseUrl = "https://roocode.com"
5+
6+
return [
7+
{
8+
url: `${baseUrl}/`,
9+
lastModified: new Date(),
10+
changeFrequency: "yearly",
11+
priority: 1,
12+
},
13+
{
14+
url: `${baseUrl}/enterprise`,
15+
lastModified: new Date(),
16+
changeFrequency: "monthly",
17+
priority: 0.8,
18+
},
19+
{
20+
url: `${baseUrl}/evals`,
21+
lastModified: new Date(),
22+
changeFrequency: "monthly",
23+
priority: 0.8,
24+
},
25+
{
26+
url: `${baseUrl}/privacy`,
27+
lastModified: new Date(),
28+
changeFrequency: "yearly",
29+
priority: 0.5,
30+
},
31+
{
32+
url: `${baseUrl}/terms`,
33+
lastModified: new Date(),
34+
changeFrequency: "yearly",
35+
priority: 0.5,
36+
},
37+
]
38+
}

apps/web-roo-code/src/app/sitemap.xml

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)