feat: make Mailtrap testInboxId configurable via environment variable

This commit is contained in:
Jose Selesan
2026-04-17 15:32:50 -03:00
parent a1ff9f2831
commit 32c436e772

View File

@@ -16,7 +16,7 @@ function getTransporter() {
MailtrapTransport({
token: TOKEN,
sandbox: Bun.env.MAIL_SANDBOX === 'true',
testInboxId: 1114587
testInboxId: Bun.env.MAIL_INBOX_ID ? Number(Bun.env.MAIL_INBOX_ID) : undefined,
})
);
return cachedTransporter;