mirror of
https://github.com/vercel/commerce.git
synced 2025-05-19 07:56:59 +00:00
* feat: init commercetools setup --------- Co-authored-by: Anja-Janina Stiefermann <anja.stiefermann@kernpunkt.de>
16 lines
302 B
TypeScript
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
|
|
};
|
|
}
|