diff --git a/.env.example b/.env.example index 61c32b2..0a4207b 100644 --- a/.env.example +++ b/.env.example @@ -18,7 +18,7 @@ SECURE_COOKIE=0 # RESEND_API_KEY=re_xxxxxxxxx # RESEND_FROM=Ask a Plumber # Public site origin used in email links (required when Resend is enabled): -# APP_BASE_URL=https://askaplumber.example +# APP_BASE_URL=https://www.askaplumberfirst.com # DigitalOcean Spaces (profile avatars). Leave unset to disable uploads. # SPACES_KEY= # SPACES_SECRET= diff --git a/internal/mail/mail_test.go b/internal/mail/mail_test.go index 3b86d32..b481637 100644 --- a/internal/mail/mail_test.go +++ b/internal/mail/mail_test.go @@ -17,7 +17,7 @@ func TestEmbeddedMarkIsPNG(t *testing.T) { func TestPostReplyContent(t *testing.T) { t.Parallel() - text, htmlBody := postReplyContent("https://plumber.example/", PostReply{ + text, htmlBody := postReplyContent("https://www.askaplumberfirst.com/", PostReply{ ToName: ``, RootID: "question-123", RootTitle: `Leaky sink`, @@ -30,7 +30,7 @@ func TestPostReplyContent(t *testing.T) { "Ask a Plumber First", "New reply", "cid:reply-notification-mark", - "https://plumber.example/questions/question-123#post-reply-456", + "https://www.askaplumberfirst.com/questions/question-123#post-reply-456", "white-space:pre-wrap", "<Sam & Pat>", "<b>Leaky sink</b>", @@ -58,7 +58,7 @@ func TestPostReplyContent(t *testing.T) { `Hi ,`, ` replied in "Leaky sink"`, "Replace the cartridge.\nThen test the handle.", - "https://plumber.example/questions/question-123#post-reply-456", + "https://www.askaplumberfirst.com/questions/question-123#post-reply-456", } { if !strings.Contains(text, want) { t.Errorf("text missing %q", want) @@ -69,7 +69,7 @@ func TestPostReplyContent(t *testing.T) { func TestPostReplyContentUsesFallbacks(t *testing.T) { t.Parallel() - text, htmlBody := postReplyContent("https://plumber.example", PostReply{}) + text, htmlBody := postReplyContent("https://www.askaplumberfirst.com", PostReply{}) if !strings.Contains(text, `Someone replied in "your conversation"`) { t.Errorf("text missing fallback title") }