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 <noreply@anthropic.com>
This commit is contained in:
Trey t
2026-03-07 13:38:55 -06:00
parent bf309f5ff9
commit 7bd2cbabe9
3 changed files with 7 additions and 6 deletions

View File

@@ -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 <noreply@honeyDue.treytartt.com>")
viper.SetDefault("DEFAULT_FROM_EMAIL", "honeyDue <noreply@myhoneydue.com>")
// Push notification defaults
viper.SetDefault("APNS_TOPIC", "com.tt.honeyDue")

View File

@@ -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",
}
}
}

View File

@@ -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"