We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31b7a70 commit b750ebfCopy full SHA for b750ebf
packages/payload/src/index.ts
@@ -542,9 +542,11 @@ export class BasePayload {
542
} else if (this.config.email) {
543
this.email = this.config.email({ payload: this })
544
} else {
545
- this.logger.warn(
546
- `No email adapter provided. Email will be written to console. More info at https://payloadcms.com/docs/email/overview.`,
547
- )
+ if (process.env.NEXT_PHASE !== 'phase-production-build') {
+ this.logger.warn(
+ `No email adapter provided. Email will be written to console. More info at https://payloadcms.com/docs/email/overview.`,
548
+ )
549
+ }
550
551
this.email = consoleEmailAdapter({ payload: this })
552
}
0 commit comments