24 lines
481 B
TypeScript
24 lines
481 B
TypeScript
import type { MetadataRoute } from "next";
|
|
import { absoluteUrl, siteUrl } from "@/lib/site";
|
|
|
|
export default function robots(): MetadataRoute.Robots {
|
|
return {
|
|
rules: [
|
|
{
|
|
userAgent: "*",
|
|
allow: "/",
|
|
disallow: [
|
|
"/api/",
|
|
"/admin",
|
|
"/profile",
|
|
"/create-trip",
|
|
"/verify",
|
|
"/trips/*/payment",
|
|
],
|
|
},
|
|
],
|
|
sitemap: absoluteUrl("/sitemap.xml"),
|
|
host: siteUrl,
|
|
};
|
|
}
|