feat: implement real-time booking updates using Server-Sent Events (SSE) and add public booking URL sharing to the dashboard
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import nodemailer from 'nodemailer';
|
||||
import { MailtrapClientConfig, MailtrapTransport } from 'mailtrap';
|
||||
import nodemailer from 'nodemailer';
|
||||
|
||||
const TOKEN = Bun.env.MAILTRAP_API_TOKEN;
|
||||
|
||||
@@ -16,13 +16,11 @@ function getTransporter() {
|
||||
token: TOKEN,
|
||||
sandbox: Bun.env.MAIL_SANDBOX === 'true',
|
||||
testInboxId: Bun.env.MAIL_INBOX_ID ? Number(Bun.env.MAIL_INBOX_ID) : undefined,
|
||||
}
|
||||
};
|
||||
|
||||
console.log(JSON.stringify(config, null, 2));
|
||||
|
||||
cachedTransporter = nodemailer.createTransport(
|
||||
MailtrapTransport(config)
|
||||
);
|
||||
cachedTransporter = nodemailer.createTransport(MailtrapTransport(config));
|
||||
return cachedTransporter;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user