Repository navigation
Commit cd17f80
chore(seo): block search indexing on the app subdomain (#3)
The product app is moving to app.ansvisor.com while the marketing site
is hosted separately on Webflow at ansvisor.com. Authenticated dashboard
pages should never appear in search results, both because they leak
nothing useful to crawlers and because surfacing /sign-in / /dashboard
URLs in SERPs hurts the marketing funnel.
Three layers of opt-out, applied together so any one is enough:
1. Next.js robots.ts emits a Disallow: / robots.txt for *all bots
2. Root layout metadata sets robots.index/follow = false (and the
same for googleBot specifically), which renders
<meta name="robots" content="noindex, nofollow"> on every page
3. Vercel.json adds X-Robots-Tag: noindex, nofollow, noarchive,
nosnippet as a response header, the strongest signal because it
also covers non-HTML resources
Marketing site at ansvisor.com is unaffected — it's served from a
different origin (Webflow) and keeps default indexing behavior.
Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>1 parent 910fe22 commit cd17f80
3 files changed
Lines changed: 40 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
33 | 43 | | |
34 | 44 | | |
35 | 45 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
7 | 18 | | |
8 | 19 | | |
0 commit comments