From 7bd2cbabe9c24853872e977b571bf8cfd1a45fa0 Mon Sep 17 00:00:00 2001 From: Trey t Date: Sat, 7 Mar 2026 13:38:55 -0600 Subject: [PATCH] Fix broken email icon by updating old domain references to myhoneydue.com The email icon URL was pointing to honeyDue.treytartt.com which now returns 404. Updated to api.myhoneydue.com along with BASE_URL, FROM_EMAIL, and CORS defaults. Co-Authored-By: Claude Opus 4.6 --- internal/config/config.go | 4 ++-- internal/router/router.go | 5 +++-- internal/services/email_service.go | 4 ++-- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/internal/config/config.go b/internal/config/config.go index 7fbd7c0..8d46305 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -293,7 +293,7 @@ func setDefaults() { viper.SetDefault("ALLOWED_HOSTS", "localhost,127.0.0.1") viper.SetDefault("TIMEZONE", "UTC") viper.SetDefault("STATIC_DIR", "/app/static") - viper.SetDefault("BASE_URL", "https://honeyDue.treytartt.com") + viper.SetDefault("BASE_URL", "https://api.myhoneydue.com") // Database defaults viper.SetDefault("DB_HOST", "localhost") @@ -315,7 +315,7 @@ func setDefaults() { viper.SetDefault("EMAIL_USE_TLS", true) viper.SetDefault("EMAIL_HOST_USER", "") viper.SetDefault("EMAIL_HOST_PASSWORD", "") - viper.SetDefault("DEFAULT_FROM_EMAIL", "honeyDue ") + viper.SetDefault("DEFAULT_FROM_EMAIL", "honeyDue ") // Push notification defaults viper.SetDefault("APNS_TOPIC", "com.tt.honeyDue") diff --git a/internal/router/router.go b/internal/router/router.go index 822925c..ce15833 100644 --- a/internal/router/router.go +++ b/internal/router/router.go @@ -259,8 +259,9 @@ func corsMiddleware(cfg *config.Config) echo.MiddlewareFunc { if len(origins) == 0 { // Restrictive default: only the known production domains origins = []string{ - "https://honeyDue.treytartt.com", - "https://honeyDue.treytartt.com", + "https://api.myhoneydue.com", + "https://myhoneydue.com", + "https://admin.myhoneydue.com", } } } diff --git a/internal/services/email_service.go b/internal/services/email_service.go index e082744..b5d7817 100644 --- a/internal/services/email_service.go +++ b/internal/services/email_service.go @@ -141,11 +141,11 @@ func (s *EmailService) SendEmailWithEmbeddedImages(to, subject, htmlBody, textBo // ────────────────────────────────────────────────────────────────────────────── // honeyDue "Warm Sage" Email Design System -// Matching the web landing page: honeyDue.treytartt.com +// Matching the web landing page: myhoneydue.com // ────────────────────────────────────────────────────────────────────────────── // emailIconURL is the URL for the email icon -const emailIconURL = "https://honeyDue.treytartt.com/images/icon.png" +const emailIconURL = "https://api.myhoneydue.com/images/icon.png" // emailFontStack — Outfit via Google Fonts with progressive fallback const emailFontStack = "Outfit, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif"