**Migrate from TOML to JSON configuration for workers**

Replaced Wrangler TOML files with JSON configuration for email and analytics workers, updating compatibility dates and maintaining existing settings. Updated email metadata and replaced hardcoded email addresses with example addresses for better abstraction. Adjusted deployment scripts in `package.json` to align with the new worker structure.
This commit is contained in:
geoffsee
2025-05-27 15:07:11 -04:00
committed by Geoff Seemueller
parent d0d55f58a6
commit fb7031fc89
7 changed files with 47 additions and 37 deletions

View File

@@ -14,7 +14,7 @@ export default class EmailWorker extends WorkerEntrypoint {
const msg = createMimeMessage();
msg.setSender({
name: "New Website Contact",
addr: "contact@seemueller.io",
addr: "contact@example.com",
});
console.log("Recipient:", to);
// msg.setRecipient(to);
@@ -27,8 +27,8 @@ export default class EmailWorker extends WorkerEntrypoint {
try {
const message = new EmailMessage(
"contact@seemueller.io",
"geoff@seemueller.io",
"contact@example.com",
"team@example.com",
msg.asRaw(),
);
await this.env.SEB.send(message);