diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md index 9a8df66..ba1cd46 100644 --- a/docs/CHANGELOG.md +++ b/docs/CHANGELOG.md @@ -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 diff --git a/docs/agent/AGENT.md b/docs/agent/AGENT.md index 053162c..14b27e4 100644 --- a/docs/agent/AGENT.md +++ b/docs/agent/AGENT.md @@ -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 "; the mail arrives from diff --git a/docs/agent/reference-site/INDEX.md b/docs/agent/reference-site/INDEX.md index b227d58..24669aa 100644 --- a/docs/agent/reference-site/INDEX.md +++ b/docs/agent/reference-site/INDEX.md @@ -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` diff --git a/docs/email.md b/docs/email.md index 94bd78b..f248416 100644 --- a/docs/email.md +++ b/docs/email.md @@ -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. diff --git a/src/types.ts b/src/types.ts index 9eade1c..baae410 100644 --- a/src/types.ts +++ b/src/types.ts @@ -140,7 +140,8 @@ export type IaplOptions = { * matches is "non-public" with no environment variable: when its database holds the mail-service * connection of another host (a copy of production's data), it does not mail real people by itself * (docs/email.md "Staging, copies and several hosts"). Replace the list with your own patterns, or - * pass `[]` so that no host is a development address. `mail.relay.developmentHosts` overrides it + * pass `[]` so that no host is a development address. Mail only: the option does not make a + * development host noindex (that is the hosting's business, or `IAPL_NOINDEX=1`). `mail.relay.developmentHosts` overrides it * for the mail service alone. */ developmentHosts?: string[]