Update app/robots.ts
This commit is contained in:
parent
312995cefa
commit
bae6bb8d95
|
|
@ -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