Skip to content

Commit

Permalink
feat(create): Update config with latest email-plugin API changes
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbromley committed Apr 16, 2019
1 parent 3fac1ac commit b2277c5
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions packages/create/templates/vendure-config.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
VendureConfig,{{/if}}
} {{#if isTs}}from '@vendure/core'; {{ else }}= require('@vendure/core');{{/if}}
{{#if isTs }}
import { EmailPlugin } from '@vendure/email-plugin';
import { defaultEmailHandlers, EmailPlugin } from '@vendure/email-plugin';
{{ else }}
const { EmailPlugin } = require('@vendure/email-plugin');
const { defaultEmailHandlers, EmailPlugin } = require('@vendure/email-plugin');
{{/if}}
{{#if isTs }}
import { AssetServerPlugin } from '@vendure/asset-server-plugin';
Expand Down Expand Up @@ -63,11 +63,16 @@ const path = require('path');
}),
new EmailPlugin({
devMode: true,
templatePath: path.join(__dirname, 'vendure/email/templates'),
outputPath: path.join(__dirname, 'vendure/email/test-emails'),
templateVars: {
shopUrl: 'http://www.example.com',
}
mailboxPort: 3003,
handlers: defaultEmailHandlers,
templatePath: path.join(__dirname, 'vendure/email/templates'),
globalTemplateVars: {
// The following variables will change depending on your storefront implementation
verifyEmailAddressUrl: 'http://localhost:8080/verify',
passwordResetUrl: 'http://localhost:8080/password-reset',
changeEmailAddressUrl: 'http://localhost:8080/verify-email-address-change'
},
}),
new DefaultSearchPlugin(),
new AdminUiPlugin({ port: 3002 }),
Expand Down

0 comments on commit b2277c5

Please sign in to comment.