From 45096b7b6596da1eeb00d1aad209cd20756382e6 Mon Sep 17 00:00:00 2001 From: Dominik Koch Date: Wed, 23 Jul 2025 19:33:21 +0200 Subject: feat: add robots/sitemap generation --- apps/web/src/app/robots.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 apps/web/src/app/robots.ts (limited to 'apps/web/src/app/robots.ts') diff --git a/apps/web/src/app/robots.ts b/apps/web/src/app/robots.ts new file mode 100644 index 00000000..ad6c31c8 --- /dev/null +++ b/apps/web/src/app/robots.ts @@ -0,0 +1,13 @@ +import type { MetadataRoute } from "next"; +import { SITE_URL } from "@/constants/site"; + +export default function robots(): MetadataRoute.Robots { + return { + rules: { + userAgent: "*", + allow: "/", + disallow: ["/_next/", "/projects/", "/editor/"], + }, + sitemap: `${SITE_URL}/sitemap.xml`, + }; +} -- cgit v1.3.1