chore: disable url search params in robots.txt

also add preview.png (I forgot yet again)
This commit is contained in:
trafficlunar 2025-05-14 18:31:04 +01:00
parent 58032ed31b
commit 8f5296ca62
2 changed files with 13 additions and 1 deletions

BIN
public/preview.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 873 KiB

View file

@ -5,7 +5,19 @@ export default function robots(): MetadataRoute.Robots {
rules: { rules: {
userAgent: "*", userAgent: "*",
allow: "/", allow: "/",
disallow: ["/create-username", "/edit/*", "/profile/settings", "/random", "/submit", "/report/mii/*", "/report/user/*", "/admin"], disallow: [
"/*?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`,
}; };