commerce/app/robots.ts
Lee Robinson 88622f2487 Prettier
2023-04-23 12:13:41 -07: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
};
}