mirror of
https://github.com/XFox111/my-website.git
synced 2026-04-22 07:28:01 +03:00
15 lines
331 B
TypeScript
15 lines
331 B
TypeScript
import { MetadataRoute } from "next";
|
|
import { canonicalName } from "./_data/metadata";
|
|
|
|
export default function robots(): MetadataRoute.Robots
|
|
{
|
|
return {
|
|
rules: {
|
|
userAgent: "*",
|
|
allow: [ "/$", "/resume" ],
|
|
disallow: [ "/resume/download", "/" ],
|
|
},
|
|
sitemap: new URL("/sitemap.xml", canonicalName.href).href,
|
|
};
|
|
}
|