Mail relay: state block without an import-map entry, e2e on the reference site, sharper failure reports
- the state block is rendered by IntegrationStatusBanner (no new admin component: generate:importmap gives no diff) - reference site: e2e/mail-relay.spec.ts with a fixture and setup script; e2e:built runs it with both bundlers - a failed enrolment is reported as what it was; the service's own refusal after a fresh enrolment - a message keeps its key after any failure that is not final - a local site is shown as refused in the panel before any e-mail Co-Authored-By: Claude Fable 5.2 <[email protected]>
This commit is contained in:
co-authored by
Claude Fable 5.2
parent
dd3792cbc7
commit
2cceceffd0
+1121
-12
File diff suppressed because it is too large
Load Diff
@@ -20,6 +20,7 @@ import { Posts } from './collections/Posts'
|
||||
// @starter:endif
|
||||
// @starter:if demo
|
||||
import { E2E_LATE_STAFF, E2E_STAFF_SLUGS, e2eEarlyStaff, e2eLateStaff } from '../e2e/late-staff-fixture'
|
||||
import { e2eMail } from '../e2e/mail-relay-fixture'
|
||||
// @starter:endif
|
||||
import { contentConfig } from './content.config'
|
||||
import { db } from './db'
|
||||
@@ -51,7 +52,7 @@ export default buildConfig({
|
||||
globals: [Header, Footer, Company],
|
||||
db,
|
||||
editor: lexicalEditor(),
|
||||
email: mailAdapter(), // transport from Site integrations (SMTP / Graph); without it form e-mails are not sent
|
||||
email: mailAdapter(), // the Intecion mail service, or the SMTP server from Site integrations; without it form e-mails are not sent
|
||||
secret: process.env.PAYLOAD_SECRET ?? '',
|
||||
sharp,
|
||||
typescript: { outputFile: path.resolve(dirname, 'payload-types.ts') },
|
||||
@@ -65,6 +66,8 @@ export default buildConfig({
|
||||
// with `stats` on, the layout passes visitorCookie={IAPL_VISITOR_COOKIE} to match
|
||||
storageNames: 'iapl',
|
||||
// @starter:if demo
|
||||
// a test fixture: `undefined` (the plugin's defaults) without E2E_MAIL_RELAY_URL (e2e/mail-relay-fixture.ts)
|
||||
mail: e2eMail,
|
||||
// (the staffCollections entry exists only for e2e/late-staff.spec.ts, with E2E_LATE_STAFF=1)
|
||||
access: { authCollection: 'users', ...(E2E_LATE_STAFF ? { staffCollections: E2E_STAFF_SLUGS } : {}) },
|
||||
// @starter:else
|
||||
|
||||
Reference in New Issue
Block a user