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 7f4bc7b commit c68b224Copy full SHA for c68b224
apps/docs/src/app/robots.ts
@@ -0,0 +1,11 @@
1
+import type { MetadataRoute } from "next"
2
+
3
+export default function robots(): MetadataRoute.Robots {
4
+ return {
5
+ rules: {
6
+ userAgent: "*",
7
+ allow: "/",
8
+ },
9
+ sitemap: "https://vorsteh-queue.dev/sitemap.xml",
10
+ }
11
+}
apps/docs/src/app/sitemap.ts
@@ -0,0 +1,16 @@
+import { transformedEntries } from "~/collections"
+export const dynamic = "force-static"
+export default async function sitemap(): Promise<MetadataRoute.Sitemap> {
+ const links = await transformedEntries()
+ return links.map((link) => {
12
+ url: `https://vorsteh-queue.dev${link.raw_pathname}`,
13
+ lastModified: new Date(),
14
15
+ })
16
0 commit comments