17 lines
363 B
TypeScript
17 lines
363 B
TypeScript
import type { MetadataRoute } from "next";
|
|
|
|
const SITE_URL = process.env.NEXT_PUBLIC_SITE_URL || "https://poyrazavsever.com";
|
|
|
|
export default function robots(): MetadataRoute.Robots {
|
|
return {
|
|
rules: [
|
|
{
|
|
userAgent: "*",
|
|
allow: "/",
|
|
disallow: ["/api/", "/_next/"],
|
|
},
|
|
],
|
|
sitemap: `${SITE_URL}/sitemap.xml`,
|
|
};
|
|
}
|