diff --git a/src/app/robots.ts b/src/app/robots.ts new file mode 100644 index 0000000..c5ca01b --- /dev/null +++ b/src/app/robots.ts @@ -0,0 +1,14 @@ +import type { MetadataRoute } from "next"; + +import { site } from "@/lib/site"; + +export default function robots(): MetadataRoute.Robots { + return { + rules: { + userAgent: "*", + allow: "/", + disallow: ["/auth/", "/login", "/offline"], + }, + sitemap: `${site.url}/sitemap.xml`, + }; +}