1
0
mirror of https://github.com/vercel/commerce.git synced 2025-08-13 20:31:23 +00:00
Files
.github
.vscode
app
[page]
api
product
search
error.tsx
favicon.ico
globals.css
layout.tsx
page.tsx
robots.ts
sitemap.ts
components
e2e
lib
.env.example
.eslintrc.js
.gitignore
.nvmrc
.prettierignore
README.md
license.md
next.config.js
package.json
playwright.config.ts
pnpm-lock.yaml
postcss.config.js
prettier.config.js
tailwind.config.js
tsconfig.json
yarn.lock
commerce/app/robots.ts
2023-04-24 09:53:56 -05: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
};
}