14 lines
287 B
TypeScript
14 lines
287 B
TypeScript
import type { MetadataRoute } from "next"
|
|
|
|
const baseUrl = process.env.CMS_WEB_ORIGIN ?? "http://localhost:3000"
|
|
|
|
export default function robots(): MetadataRoute.Robots {
|
|
return {
|
|
rules: {
|
|
userAgent: "*",
|
|
allow: "/",
|
|
},
|
|
sitemap: `${baseUrl}/sitemap.xml`,
|
|
}
|
|
}
|