mirror of
https://github.com/vercel/commerce.git
synced 2025-08-22 16:51:22 +00:00
.github
.vscode
app
(site)
(studio)
api
favicon.ico
globals.css
robots.ts
sitemap.ts
components
helpers
lib
messages
public
.env.example
.eslintrc.js
.gitignore
.npmrc
.nvmrc
.prettierignore
README.md
components.json
i18n-config.ts
license.md
middleware.ts
next.config.js
package.json
playwright.config.ts
pnpm-lock.yaml
postcss.config.js
prettier.config.js
sanity.config.ts
tailwind.config.js
tsconfig.json
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
|
|
};
|
|
}
|