refactor(chore): replace logo from attachments by url

This commit is contained in:
Julien Oculi 2024-04-15 10:41:46 +02:00
parent eadb397847
commit 188ca13c2c
2 changed files with 2 additions and 9 deletions

View file

@ -13,13 +13,6 @@ export async function send(mail: Mail) {
subject: mail.subject,
text,
html,
attachments: [
{
cid: 'cohabit_logo.svg',
path: 'https://cohabit.fr/images/logo.svg',
filename: 'cohabit_logo.svg',
},
...mail.options.attachments.map((path) => ({ path })),
],
attachments: mail.options.attachments.map((path) => ({ path })),
})
}

View file

@ -31,7 +31,7 @@ function Welcome(
<Section>
<Heading as='h1' style={headingCss}>
Bienvenue au<Img
src='cid:cohabit_logo.svg'
src='https://cohabit.fr/images/logo.svg'
alt='FabLab Cohabit'
style={imgCss}
/>