14 lines
367 B
TypeScript
14 lines
367 B
TypeScript
import { MetadataRoute } from "next";
|
|
|
|
export default function robots(): MetadataRoute.Robots {
|
|
const baseUrl = process.env.NEXT_PUBLIC_APP_URL || "https://iddaai.com";
|
|
return {
|
|
rules: {
|
|
userAgent: "*",
|
|
allow: "/",
|
|
disallow: ["/admin", "/*/dashboard", "/*/profile", "/*/coupon-history"],
|
|
},
|
|
sitemap: `${baseUrl}/sitemap.xml`,
|
|
};
|
|
}
|