We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 99d0c9e commit 662547eCopy full SHA for 662547e
src/app/sitemap.ts
@@ -0,0 +1,27 @@
1
+import type { MetadataRoute } from "next";
2
+import {
3
+ mainSource,
4
+ selfHostingSource,
5
+ platformSource,
6
+ guideSource,
7
+ openApiSource,
8
+ developingSource,
9
+} from "../lib/source";
10
+
11
+export default function sitemap(): MetadataRoute.Sitemap {
12
+ const sources = [
13
14
15
16
17
18
19
+ ];
20
21
+ return sources.flatMap((s) =>
22
+ s.getPages().map((page) => ({
23
+ url: `https://docs.logchimp.codecarrot.net${page.url}`,
24
+ lastModified: new Date().toISOString(),
25
+ })),
26
+ );
27
+}
0 commit comments