The only code change the migration needs.
Rollback after cutover is a config flip (MAIL_TRANSPORT=sendgrid, or unset the var) — not a deploy revert. This matters because there is no staging auth app: auth.codebar.io serves both the production and staging planners, so every magic-link send is sign-in-critical.
Depends on: none (independent of the IAM credentials issue — code can land and merge while credentials are being created).
The only code change the migration needs.
src/auth.js, selected by aMAIL_TRANSPORTconfig var that defaults tosendgrid— behaviour is unchanged until the var is set@aws-sdk/client-sesv2; build theSendEmailcommand in a separate, unit-testable builder mirroring howbuildMagicLinkPayloadisolates the SendGrid request shapeRollback after cutover is a config flip (
MAIL_TRANSPORT=sendgrid, or unset the var) — not a deploy revert. This matters because there is no staging auth app:auth.codebar.ioserves both the production and staging planners, so every magic-link send is sign-in-critical.Depends on: none (independent of the IAM credentials issue — code can land and merge while credentials are being created).