feat: make Mailtrap testInboxId configurable via environment variable
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user