mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-07-10 00:58:01 +00:00
## Summary Allow crawler access to `/payment/` routes in robots.txt so search engines can read the `noindex` tag, and forcefully inject the `x-robots-tag: noindex` header via `vercel.json`. ## Changes - **What**: Removed `Disallow: /payment/` from `robots.txt` and added rules to `vercel.json` applying `x-robots-tag: noindex` to `/payment/(.*)` and `/zh-CN/payment/(.*)` routes. ## Review Focus - The configurations in `vercel.json` apply to both English and localized payment routes (`/zh-CN/payment/(.*)`). --------- Co-authored-by: nav-tej <36310614+nav-tej@users.noreply.github.com> Co-authored-by: Christian Byrne <cbyrne@comfy.org>
60 lines
1.2 KiB
JSON
60 lines
1.2 KiB
JSON
{
|
|
"$schema": "https://openapi.vercel.sh/vercel.json",
|
|
"buildCommand": "pnpm --filter @comfyorg/website build",
|
|
"outputDirectory": "dist",
|
|
"installCommand": "pnpm install --frozen-lockfile",
|
|
"framework": null,
|
|
"github": {
|
|
"enabled": false
|
|
},
|
|
"headers": [
|
|
{
|
|
"source": "/(.*)",
|
|
"has": [
|
|
{ "type": "host", "value": "website-frontend-comfyui.vercel.app" }
|
|
],
|
|
"headers": [{ "key": "X-Robots-Tag", "value": "index, follow" }]
|
|
},
|
|
{
|
|
"source": "/payment/(.*)",
|
|
"headers": [
|
|
{
|
|
"key": "X-Robots-Tag",
|
|
"value": "noindex"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"source": "/:locale/payment/(.*)",
|
|
"headers": [
|
|
{
|
|
"key": "X-Robots-Tag",
|
|
"value": "noindex"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"redirects": [
|
|
{
|
|
"source": "/pricing",
|
|
"destination": "/cloud/pricing",
|
|
"permanent": true
|
|
},
|
|
{
|
|
"source": "/enterprise",
|
|
"destination": "/cloud/enterprise",
|
|
"permanent": true
|
|
},
|
|
{
|
|
"source": "/blog",
|
|
"destination": "https://blog.comfy.org/",
|
|
"permanent": true
|
|
},
|
|
{
|
|
"source": "/press",
|
|
"destination": "/about",
|
|
"permanent": true
|
|
}
|
|
]
|
|
}
|