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:
Jose Selesan
2026-04-17 17:25:46 -03:00
parent a075f13587
commit e0d755bef7
10 changed files with 226 additions and 8 deletions

View File

@@ -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;
}