A development host is kept out of search engines without IAPL_NOINDEX (developmentNoindex, default on)
Separate from the mail rule so that it can be taken or left. A site whose address matches
iapl({ developmentHosts }) - built in: *.dev.netscale.pl - is noindex with no env: robots.txt disallows
everything, pages carry noindex, IndexNow sends nothing, buildSecurityHeaders() adds X-Robots-Tag. Nothing
kept a development copy out of search engines until now unless somebody set the variable.
- iapl({ developmentNoindex: false }) switches it off for the project, IAPL_NOINDEX=0 for one environment
- buildSecurityHeaders({ developmentHosts, serverUrl }): next.config runs before the plugin
- the mail rule keeps its own two signals: the development pattern, and the variable itself
- changelog "what changes on upgrade", deployment.md, security.md, AGENT.md, skills
Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
co-authored by
Claude Fable 5.2
parent
14abf369da
commit
bc3aac249f
@@ -266,7 +266,7 @@ The plugin's own variables are `IAPL_<NAME>`; a deploy that sets the spelling fr
|
||||
| `IAPL_IP_HEADER` | `ipHeader: true` + production | rate limit trusts any IP header (spoofing) + warning in prod | env: `cf-connecting-ip` (Cloudflare) / `x-forwarded-for` (Traefik/nginx) |
|
||||
| `IAPL_COOKIE_SCAN_URL`, `IAPL_COOKIE_SCAN_TOKEN` | `cookieScanner.crawl` (`iaplEnvRules({ cookieCrawl: true })` requires both in production; token ≥ 16 chars) | **Check site** disabled, the box names the missing variable | env; the token also goes into the scanner service's `IAPL_CRAWLER_SITES` as `host=token` |
|
||||
| `IAPL_DOCTOR_TOKEN` | no; ≥ 32 characters | `GET /api/ipal/doctor` answers 404; with it the endpoint answers a Bearer token, and `iapl-doctor --url` with the same variable reads the deep counts | env (Coolify) and the doctor's shell; also read by the doctor: `CI`, `NO_COLOR`, `PAYLOAD_CONFIG_PATH` (`--deep`), `IAPL_DOCTOR_IMPORT_MAP` (internal) — doctor.md |
|
||||
| `IAPL_NOINDEX` | no; `1`/`true`/`yes` **staging/preview only** | — (when set: robots Disallow, meta noindex, `X-Robots-Tag`, IndexNow sends nothing) | staging env |
|
||||
| `IAPL_NOINDEX` | no; `1`/`true`/`yes` **staging/preview only**; `0` = not noindex although on a development host | — (when set: robots Disallow, meta noindex, `X-Robots-Tag`, IndexNow sends nothing). A host matching `iapl({ developmentHosts })` (default `*.dev.netscale.pl`) is noindex without it (`developmentNoindex: false` to switch off) | staging env |
|
||||
| `NEXT_PHASE` | set by Next | only tells `next build` from runtime: during the build an unreachable database gives an empty sitemap; at runtime the sitemap throws (route → 503) | do not set by hand |
|
||||
| `NEXT_RUNTIME` | set by Next | `instrumentation.ts` checks for `nodejs`; missing (scripts, seed) → `buildRevalidateHook` does not revalidate | do not set by hand |
|
||||
|
||||
|
||||
@@ -529,7 +529,7 @@ overrides the default; CSP: `buildCsp` flags (`youtube`, `googleMaps`, `metaPixe
|
||||
= no policy; after clean reports `mode: 'enforce'` (site and admin); nonces only for pages that already render per request
|
||||
(`createProxy({ csp })` + `<SiteProviders nonce>`); `withSecurityConfig(config, { hidePoweredBy: false })` keeps `X-Powered-By`;
|
||||
`buildImagesConfig({ extraHosts })`; env validation is fully opt-in — filter/add rules
|
||||
(`iaplEnvRules(…).filter(…)`). Staging: `IAPL_NOINDEX=1` (also stops IndexNow). Search engines: `robots` instead of
|
||||
(`iaplEnvRules(…).filter(…)`). Staging: `IAPL_NOINDEX=1` (also stops IndexNow); a development address under `iapl({ developmentHosts })` (default `*.dev.netscale.pl`) is noindex by itself, nothing to set — check `/robots.txt` there says `Disallow: /` and on the real domain it does not. Search engines: `robots` instead of
|
||||
`getRobots` ignores the panel; `iapl({ searchSettings: false })` removes the tab; per-bot exceptions in code:
|
||||
`createContentHelpers({ robots: { aiBotRules: [{ userAgent, access }] } })`. Sitemap: `sitemapOptions: { maxUrls,
|
||||
cacheControl, memoSeconds }`, `sitemapEntries: (entries) => entries` (add/remove URLs), `underConstructionSeo: false`.
|
||||
|
||||
@@ -581,6 +581,11 @@ PROGRAMISTA §6, item 73; email.md; AGENT.md §7.2) — nothing to run; read whi
|
||||
signal (`mail-non-public`). A copy on another host without the variable sends to the real addresses in its data; keep a copy silent for good
|
||||
with `mail: { relay: false }` or SMTP to a catcher. Production must not have `IAPL_NOINDEX` set (it would send
|
||||
nothing).
|
||||
**A development address is now noindex by itself** (host matches `iapl({ developmentHosts })`, default
|
||||
`*.dev.netscale.pl`): robots.txt `Disallow: /`, page meta, `X-Robots-Tag`, no IndexNow — with no `IAPL_NOINDEX`.
|
||||
Nothing to do; tell the owner if an SEO check is run against the development address (use `IAPL_NOINDEX=0`
|
||||
there, or the real domain). A project with its own list passes it to `buildSecurityHeaders({ developmentHosts })`
|
||||
in `next.config` too. Old behaviour: `iapl({ developmentNoindex: false })`.
|
||||
4. Code that compared the result of `payload.sendEmail` needs no change for SMTP and Graph. A send through the mail
|
||||
service returns `{ sent, transport: 'relay', … }`; `sent: false` with `confirmed: false` means "may have been sent".
|
||||
5. Your own account mail (invitations): mark it — `withMailKind(message, 'account')`. Form mail and Payload's
|
||||
|
||||
Reference in New Issue
Block a user