mirror of
https://github.com/vercel/chat.git
synced 2026-09-14 18:32:29 +08:00
15 lines
384 B
TypeScript
15 lines
384 B
TypeScript
import type { MetadataRoute } from "next";
|
|
|
|
const protocol = process.env.NODE_ENV === "production" ? "https" : "http";
|
|
const baseUrl = `${protocol}://${process.env.NEXT_PUBLIC_VERCEL_PROJECT_PRODUCTION_URL}`;
|
|
|
|
export default function robots(): MetadataRoute.Robots {
|
|
return {
|
|
rules: {
|
|
userAgent: "*",
|
|
allow: "/",
|
|
},
|
|
sitemap: `${baseUrl}/sitemap.xml`,
|
|
};
|
|
}
|