Skip to content

Commit dd56ddd

Browse files
committed
sitemap
1 parent a8247d1 commit dd56ddd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/routes/sitemap.xml/+server.ts

+5
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,16 @@ export const GET: RequestHandler = async ({ request }) => {
77
const urls: string[] = [];
88
const origin = new URL(request.url).origin;
99

10+
urls.push(origin + '/');
11+
12+
urls.push(origin + '/examples/');
1013
for (const section of exampleToc) {
1114
for (const [path] of Object.entries(section.items)) {
1215
urls.push(origin + path);
1316
}
1417
}
18+
19+
urls.push(origin + '/docs/components/');
1520
for (const section of componentToc) {
1621
for (const [path] of Object.entries(section.items)) {
1722
urls.push(origin + path);

0 commit comments

Comments
 (0)