fix: remove tags and sort from robots.txt disallow

This commit is contained in:
trafficlunar 2025-05-15 19:19:26 +01:00
parent 9b8c697f66
commit 65e01603ec

View file

@ -5,19 +5,7 @@ export default function robots(): MetadataRoute.Robots {
rules: { rules: {
userAgent: "*", userAgent: "*",
allow: "/", allow: "/",
disallow: [ disallow: ["/*?page", "/create-username", "/edit/*", "/profile/settings", "/random", "/submit", "/report/mii/*", "/report/user/*", "/admin"],
"/*?page",
"/*?tags",
"/*?sort",
"/create-username",
"/edit/*",
"/profile/settings",
"/random",
"/submit",
"/report/mii/*",
"/report/user/*",
"/admin",
],
}, },
sitemap: `${process.env.BASE_URL}/sitemap.xml`, sitemap: `${process.env.BASE_URL}/sitemap.xml`,
}; };