Revert "A development host is kept out of search engines without IAPL_NOINDEX (developmentNoindex, default on)"

This reverts commit bc3aac249f.
This commit is contained in:
Radosław Smoliński
2026-11-26 10:38:29 +01:00
parent 463b966365
commit 5df5358768
23 changed files with 24 additions and 215 deletions
+1 -1
View File
@@ -333,7 +333,7 @@ one is better. Google ignores the same description on many pages.
| "Thank you" after a form, a confirmation page | **yes** |
| internal search results, filter/parameter pages | **yes** (+ `disallowParams` in robots) |
| a test page, a draft page, a landing page only for a paid campaign | **yes** |
| staging, preview, a test copy of the whole site | **`IAPL_NOINDEX=1` in that environment's env** — not the checkbox. A **development host** needs nothing: an address that matches `iapl({ developmentHosts })` (default `['*.dev.netscale.pl']`) is noindex by itself — robots.txt, page meta, IndexNow, and `X-Robots-Tag` from `buildSecurityHeaders()` (pass it `developmentHosts` too if the project changed the list; `next.config` runs before the plugin). Off: `iapl({ developmentNoindex: false })`, or `IAPL_NOINDEX=0` in one environment. Verify: `curl -sI https://<dev host>/ \| grep -i x-robots-tag` and `/robots.txt` says `Disallow: /`; on the real domain neither |
| staging, preview, a test copy of the whole site | **`IAPL_NOINDEX=1` in that environment's env** — not the checkbox |
| homepage, archives (blog, projects) | **never** — the panel blocks saving |
| services, offer, contact, about us, posts | **never** |
| privacy policy, cookies, terms | **no** by default (they are a credibility signal, they do no harm); `noindex` only at the client's request |