Skip to content

Commit

Permalink
fix: demo email start on payload init
Browse files Browse the repository at this point in the history
  • Loading branch information
DanRibbens committed Jan 3, 2021
1 parent 3233e90 commit 57d2c86
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 0 additions & 5 deletions demo/payload.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,6 @@ export default buildConfig({
},
webpack: (config) => config,
},
email: {
transport: 'mock',
fromName: 'Payload',
fromAddress: '[email protected]',
},
collections: [
Admin,
AllFields,
Expand Down
4 changes: 4 additions & 0 deletions demo/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ payload.init({
secret: 'SECRET_KEY',
mongoURL: 'mongodb://localhost/payload',
express: expressApp,
email: {
fromName: 'Payload',
fromAddress: '[email protected]',
},
onInit: (app) => {
app.logger.info('Payload Demo Initialized');
},
Expand Down

0 comments on commit 57d2c86

Please sign in to comment.