Update app/robots.ts
This commit is contained in:
parent
74709e7d85
commit
ab4f793073
|
|
@ -0,0 +1,19 @@
|
|||
import { MetadataRoute } from "next";
|
||||
|
||||
export default function robots(): MetadataRoute.Robots {
|
||||
const baseUrl = process.env.NEXT_PUBLIC_URL || "https://kleap.co";
|
||||
|
||||
return {
|
||||
rules: {
|
||||
userAgent: "*",
|
||||
allow: "/",
|
||||
disallow: [
|
||||
"/api/",
|
||||
"/_next/",
|
||||
"/admin/",
|
||||
// Add any private routes here
|
||||
],
|
||||
},
|
||||
sitemap: `${baseUrl}/sitemap.xml`,
|
||||
};
|
||||
}
|
||||
Loading…
Reference in New Issue