diff --git a/app/robots.ts b/app/robots.ts new file mode 100644 index 0000000..ba4e2d2 --- /dev/null +++ b/app/robots.ts @@ -0,0 +1,12 @@ +import type { MetadataRoute } from "next"; + +export default function robots(): MetadataRoute.Robots { + return { + rules: { + userAgent: "*", + allow: "/", + disallow: "/unsubscribe" + }, + sitemap: `${process.env.NEXT_PUBLIC_WEBSITE_URL}/sitemap.xml` + }; +}