From 57d2c8602fb81a5d67d34a38c25a0429c2b9c44b Mon Sep 17 00:00:00 2001 From: Dan Ribbens Date: Sun, 3 Jan 2021 03:15:54 -0500 Subject: [PATCH] fix: demo email start on payload init --- demo/payload.config.ts | 5 ----- demo/server.ts | 4 ++++ 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/demo/payload.config.ts b/demo/payload.config.ts index 16432937bb4..c62d9522e3e 100644 --- a/demo/payload.config.ts +++ b/demo/payload.config.ts @@ -50,11 +50,6 @@ export default buildConfig({ }, webpack: (config) => config, }, - email: { - transport: 'mock', - fromName: 'Payload', - fromAddress: 'hello@payloadcms.com', - }, collections: [ Admin, AllFields, diff --git a/demo/server.ts b/demo/server.ts index 098efa7af56..794e3d7dfc7 100644 --- a/demo/server.ts +++ b/demo/server.ts @@ -11,6 +11,10 @@ payload.init({ secret: 'SECRET_KEY', mongoURL: 'mongodb://localhost/payload', express: expressApp, + email: { + fromName: 'Payload', + fromAddress: 'hello@payloadcms.com', + }, onInit: (app) => { app.logger.info('Payload Demo Initialized'); },