Skip to content

Commit

Permalink
fix(create): Update EmailPlugin config to use templateLoader API
Browse files Browse the repository at this point in the history
Relates to #2981
  • Loading branch information
michaelbromley committed Jul 31, 2024
1 parent 2f897fd commit 6708440
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/create/templates/vendure-config.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
DefaultSearchPlugin,
VendureConfig,
} from '@vendure/core';
import { defaultEmailHandlers, EmailPlugin } from '@vendure/email-plugin';
import { defaultEmailHandlers, EmailPlugin, FileBasedTemplateLoader } from '@vendure/email-plugin';
import { AssetServerPlugin } from '@vendure/asset-server-plugin';
import { AdminUiPlugin } from '@vendure/admin-ui-plugin';
import 'dotenv/config';
Expand Down Expand Up @@ -88,7 +88,7 @@ export const config: VendureConfig = {
outputPath: path.join(__dirname, '../static/email/test-emails'),
route: 'mailbox',
handlers: defaultEmailHandlers,
templatePath: path.join(__dirname, '../static/email/templates'),
templateLoader: new FileBasedTemplateLoader(path.join(__dirname, '../static/email/templates')),
globalTemplateVars: {
// The following variables will change depending on your storefront implementation.
// Here we are assuming a storefront running at http://localhost:8080.
Expand Down

0 comments on commit 6708440

Please sign in to comment.