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:
@@ -293,7 +293,7 @@ func setDefaults() {
|
|||||||
viper.SetDefault("ALLOWED_HOSTS", "localhost,127.0.0.1")
|
viper.SetDefault("ALLOWED_HOSTS", "localhost,127.0.0.1")
|
||||||
viper.SetDefault("TIMEZONE", "UTC")
|
viper.SetDefault("TIMEZONE", "UTC")
|
||||||
viper.SetDefault("STATIC_DIR", "/app/static")
|
viper.SetDefault("STATIC_DIR", "/app/static")
|
||||||
viper.SetDefault("BASE_URL", "https://honeyDue.treytartt.com")
|
viper.SetDefault("BASE_URL", "https://api.myhoneydue.com")
|
||||||
|
|
||||||
// Database defaults
|
// Database defaults
|
||||||
viper.SetDefault("DB_HOST", "localhost")
|
viper.SetDefault("DB_HOST", "localhost")
|
||||||
@@ -315,7 +315,7 @@ func setDefaults() {
|
|||||||
viper.SetDefault("EMAIL_USE_TLS", true)
|
viper.SetDefault("EMAIL_USE_TLS", true)
|
||||||
viper.SetDefault("EMAIL_HOST_USER", "")
|
viper.SetDefault("EMAIL_HOST_USER", "")
|
||||||
viper.SetDefault("EMAIL_HOST_PASSWORD", "")
|
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
|
// Push notification defaults
|
||||||
viper.SetDefault("APNS_TOPIC", "com.tt.honeyDue")
|
viper.SetDefault("APNS_TOPIC", "com.tt.honeyDue")
|
||||||
|
|||||||
@@ -259,8 +259,9 @@ func corsMiddleware(cfg *config.Config) echo.MiddlewareFunc {
|
|||||||
if len(origins) == 0 {
|
if len(origins) == 0 {
|
||||||
// Restrictive default: only the known production domains
|
// Restrictive default: only the known production domains
|
||||||
origins = []string{
|
origins = []string{
|
||||||
"https://honeyDue.treytartt.com",
|
"https://api.myhoneydue.com",
|
||||||
"https://honeyDue.treytartt.com",
|
"https://myhoneydue.com",
|
||||||
|
"https://admin.myhoneydue.com",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -141,11 +141,11 @@ func (s *EmailService) SendEmailWithEmbeddedImages(to, subject, htmlBody, textBo
|
|||||||
|
|
||||||
// ──────────────────────────────────────────────────────────────────────────────
|
// ──────────────────────────────────────────────────────────────────────────────
|
||||||
// honeyDue "Warm Sage" Email Design System
|
// 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
|
// 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
|
// emailFontStack — Outfit via Google Fonts with progressive fallback
|
||||||
const emailFontStack = "Outfit, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif"
|
const emailFontStack = "Outfit, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif"
|
||||||
|
|||||||
Reference in New Issue
Block a user