feat: make Mailtrap testInboxId configurable via environment variable
This commit is contained in:
@@ -16,7 +16,7 @@ function getTransporter() {
|
|||||||
MailtrapTransport({
|
MailtrapTransport({
|
||||||
token: TOKEN,
|
token: TOKEN,
|
||||||
sandbox: Bun.env.MAIL_SANDBOX === 'true',
|
sandbox: Bun.env.MAIL_SANDBOX === 'true',
|
||||||
testInboxId: 1114587
|
testInboxId: Bun.env.MAIL_INBOX_ID ? Number(Bun.env.MAIL_INBOX_ID) : undefined,
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
return cachedTransporter;
|
return cachedTransporter;
|
||||||
|
|||||||
Reference in New Issue
Block a user