turborepo
12ef987e - fix(docs): Allow search engine indexing on production domain (#11456)

Commit
42 days ago
fix(docs): Allow search engine indexing on production domain (#11456) ## Summary - Fixes robots.txt blocking all search engines on turborepo.dev - Uses `VERCEL_PROJECT_PRODUCTION_URL` to determine if we're on the main production domain - Only allows indexing on `turborepo.dev`, blocks subdomains and preview deployments - Adds sitemap reference for production ## Problem The previous logic used `VERCEL_URL` which returns values like `turborepo-git-main-vercel.vercel.app` even in production. This has more than 2 domain parts, so it was incorrectly triggering the subdomain blocking logic and serving `Disallow: /` on the main site.
Author
Parents
Loading