Skip to content

Commit

Permalink
fixing the path of email attachment
Browse files Browse the repository at this point in the history
  • Loading branch information
carvalholuigi25 committed Nov 3, 2023
1 parent 3406a5a commit 53dfdd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/api/sendemail/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export async function POST(req: any) {
html: EmailTemplate(body),
attachments: [{
filename: 'logo_compact.png',
path: "./public/images/logos/logo_compact.png",
path: process.env.TYPEENV === 'production' ? "https://lcp-pi.vercel.app/images/logos/logo_compact.png" : "./public/images/logos/logo_compact.png",
cid: 'uniquelogo'
}]
};
Expand Down

0 comments on commit 53dfdd0

Please sign in to comment.