commerce/app/robots.ts
2023-11-17 09:57:02 +01:00

16 lines
302 B
TypeScript

const baseUrl = process.env.NEXT_PUBLIC_VERCEL_URL
? `https://${process.env.NEXT_PUBLIC_VERCEL_URL}`
: "http://localhost:3000";
export default function robots() {
return {
rules: [
{
userAgent: "*"
}
],
sitemap: `${baseUrl}/sitemap.xml`,
host: baseUrl
};
}