mirror of
https://github.com/vercel/commerce.git
synced 2025-07-24 02:31:24 +00:00
.github
.vscode
app
[page]
api
product
search
error.tsx
favicon.ico
globals.css
layout.tsx
opengraph-image.tsx
page.tsx
robots.ts
sitemap.ts
components
fonts
lib
public
.dockerignore
.env.example
.eslintrc.js
.gitignore
.nvmrc
.prettierignore
.releaserc
CHANGELOG.md
Dockerfile
README.md
license.md
next.config.js
package.json
pnpm-lock.yaml
postcss.config.js
prettier.config.js
static-analysis.datadog.yml
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
|
|
};
|
|
}
|