stricter robots.txt

This commit is contained in:
jake committed 2025-03-24 18:51:53 -04:00
1 parent 7a70057e2c
commit 8efb4a84ee
4 files changed
+8 -8

No files matched your search

+1 -2
View File
@@ -7,8 +7,7 @@ const robots = (): MetadataRoute.Robots => ({
rules: [
{
userAgent: "*",
// block access to staging sites
[process.env.NEXT_PUBLIC_VERCEL_ENV === "production" ? "allow" : "disallow"]: "/",
disallow: ["/_stream/", "/api/", "/stats/", "/tweets/", "/404", "/500"],
},
],
sitemap: `${BASE_URL}/sitemap.xml`,