mirror of
https://github.com/geoffsee/open-gsio.git
synced 2025-09-08 22:56:46 +00:00
**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:

committed by
Geoff Seemueller

parent
d0d55f58a6
commit
fb7031fc89
@@ -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);
|
||||
|
Reference in New Issue
Block a user