feat: add script for robots.txt file generation

This commit is contained in:
Dorian Niemiec 2024-09-08 20:39:05 +02:00
parent f452f0023b
commit 737a342c3b

12
app/robots.ts Normal file
View file

@ -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`
};
}