Development hosts are about mail only: one sentence on robots; the reference index after the fixture

Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-11-26 10:40:33 +01:00
co-authored by Claude Fable 5.2
parent 5df5358768
commit 99c73ed0ff
5 changed files with 13 additions and 3 deletions
+1 -1
View File
@@ -110,7 +110,7 @@ once there are more than 20.
`*.dev.netscale.pl` is Intecion's own development domain, where the team's sites are built before launch; a
project replaces the list with its own patterns or empties it (`[]`). Building blocks: `matchDevelopmentHost`,
`isDevelopmentHost`, `pluginDevelopmentHosts`, `siteIsNonPublic`, `siteNonPublicSignal` (`NonPublicSignal`).
Doctor: `mail-non-public` (info, deep) names the signal that makes a site non-public.
Doctor: `mail-non-public` (info, deep) names the signal that makes a site non-public. The list is about mail only: it does not make a development host noindex. Keeping development addresses out of search engines stays the hosting's business (Coolify) or `IAPL_NOINDEX=1`. Nothing changes in what a site serves to robots on upgrade.
- **Panel:** the state block on the e-mail tab (transport in effect, the site's state with the service, sender and
reply address, what is left of the limits, a replaced sender name; "Check now", "Connect again", "Disconnect";
"Enter an access key" for a token issued by hand only with `mail.relay.accessKeyField: true`); "Sending method" reads "Automatic" / "Microsoft Graph (deprecated)"; the server field reads
+2 -1
View File
@@ -1299,7 +1299,8 @@ the mail service → nothing (`mail: { relay: false }` and no SMTP). A site with
info). A production site that kept `IAPL_NOINDEX=1` sends nothing until the variable is removed. For a copy that
must never send: `mail: { relay: false }` or SMTP to a catcher. If the project's copies live on other hosts than
`*.dev.netscale.pl`, name them in `developmentHosts`. The doctor's deep run says which signal applies
(`mail-non-public`). Verify: on the copy, Site integrations → E-mail sending says "The
(`mail-non-public`). The option does not touch robots: noindex on a development address is the hosting's
business or `IAPL_NOINDEX=1`. Verify: on the copy, Site integrations → E-mail sending says "The
data comes from another site (…)" and a test e-mail is refused; on the launched site it says "Connected to IWSN".
**Verify:** Site integrations → E-mail sending → the block "How e-mails are sent" says "Connected to IWSN"; **Send test e-mail** answers "through IWSN, as <name>"; the mail arrives from
+7
View File
@@ -1209,6 +1209,13 @@ export const E2E_MAIL_RELAY_URL = process.env.E2E_MAIL_RELAY_URL || undefined
/** `iapl({ mail })` for the test, `undefined` (the plugin's defaults) otherwise. */
export const e2eMail = E2E_MAIL_RELAY_URL ? { relay: { retryBackoffMs: 50, url: E2E_MAIL_RELAY_URL } } : undefined
/**
* `iapl({ developmentHosts })` for a test that plays a development address on this machine (the built-in
* pattern, `*.dev.netscale.pl`, cannot be served from localhost): E2E_DEVELOPMENT_HOSTS, comma-separated
* patterns. `undefined` (the plugin's built-in list) otherwise.
*/
export const e2eDevelopmentHosts = process.env.E2E_DEVELOPMENT_HOSTS ? process.env.E2E_DEVELOPMENT_HOSTS.split(',').map((p) => p.trim()).filter(Boolean) : undefined
```
### `e2e/mail-relay-setup.ts`
+1
View File
@@ -285,6 +285,7 @@ await runWithMailKind('account', () => sendWelcomeMails(payload, user))
or pass **`[]`** so that no host is a development address. `mail: { relay: { developmentHosts } }` overrides the
list for the mail service alone.
- **By the variable.** `IAPL_NOINDEX=1` marks any other staging, preview or test copy.
- The list is about mail only: it does **not** make a development host noindex. Keeping development addresses out of search engines stays the hosting's business (Coolify) or `IAPL_NOINDEX=1`.
- The panel state (`nonPublicBy`, `nonPublicPattern`), `siteNonPublicSignal(payload)` and the doctor
(`mail-non-public`) say which of the two applies.