Fixed email component import path.
This commit is contained in:
@@ -1,10 +1,10 @@
|
|||||||
import { readdirSync } from 'node:fs';
|
import { readdirSync } from 'node:fs';
|
||||||
import path from 'node:path';
|
import path from 'node:path';
|
||||||
import { fileURLToPath } from 'node:url';
|
import process from 'node:process';
|
||||||
|
|
||||||
import { config as configureEmailTemplates } from '@vue-email/compiler';
|
import { config as configureEmailTemplates } from '@vue-email/compiler';
|
||||||
|
|
||||||
export const emailsDir = path.join(path.dirname(fileURLToPath(import.meta.url)), '../components/emails');
|
export const emailsDir = path.join(process.cwd(), 'components/emails');
|
||||||
|
|
||||||
export const emailTemplates = configureEmailTemplates(emailsDir, { verbose: false });
|
export const emailTemplates = configureEmailTemplates(emailsDir, { verbose: false });
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user