16 lines
368 B
TypeScript
16 lines
368 B
TypeScript
|
|
import type { MetadataRoute } from "next";
|
||
|
|
|
||
|
|
const siteUrl =
|
||
|
|
process.env.NEXT_PUBLIC_SITE_URL ?? "http://localhost:3000";
|
||
|
|
|
||
|
|
export default function robots(): MetadataRoute.Robots {
|
||
|
|
return {
|
||
|
|
rules: {
|
||
|
|
userAgent: "*",
|
||
|
|
allow: "/",
|
||
|
|
disallow: ["/dashboard", "/studio", "/api"],
|
||
|
|
},
|
||
|
|
sitemap: new URL("/sitemap.xml", siteUrl).toString(),
|
||
|
|
};
|
||
|
|
}
|