/** * Test fixture, on only with E2E_MAIL_RELAY_URL (e2e/mail-relay.spec.ts): points the mail service's client at * a stand-in the spec starts on this machine, so the spec can watch a built site enrol through its own confirm * route and send — without the real service. Never part of a real site: the starter drops `e2e/` and the lines * that use this file; a real site names no address (the plugin's own is used). */ 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