diff --git a/apps/infoalloggi/emails/base.tsx b/apps/infoalloggi/emails/base.tsx index 024c306..34d0238 100644 --- a/apps/infoalloggi/emails/base.tsx +++ b/apps/infoalloggi/emails/base.tsx @@ -11,6 +11,7 @@ import { Text, } from "@react-email/components"; import type { JSX } from "react"; +import { env } from "~/env"; const Base = ({ children, @@ -21,6 +22,11 @@ const Base = ({ preview: string; noreply?: boolean; }) => { + console.log("BASE_URL:", env.BASE_URL); + console.log("INTERNAL_BASE_URL:", env.INTERNAL_BASE_URL); + console.log("NEXT_PUBLIC_BASE_URL:", env.NEXT_PUBLIC_BASE_URL); + console.log("process.env.BASE_URL:", process.env.BASE_URL); + const baseUrl = process.env.BASE_URL; return ( diff --git a/apps/infoalloggi/src/server/services/mailer.ts b/apps/infoalloggi/src/server/services/mailer.ts index 2772fc3..c03267d 100644 --- a/apps/infoalloggi/src/server/services/mailer.ts +++ b/apps/infoalloggi/src/server/services/mailer.ts @@ -62,14 +62,6 @@ const mailer = async ({ to, subject, html }: MailerProps) => { smtpTransport.use("compile", htmlToText()); const message: Options = { - attachments: [ - { - cid: "logo", - contentType: "image/png", - filename: "Infoalloggi.png", - path: "./public/Infoalloggi.png", - }, - ], from: `"InfoAlloggi" <${env.ARUBA_USER}>`, html: html, subject: subject,