Skip to content

fix: Replace hardcoded URLs with configurable APP_BASE_URL (apn-rm6a9)#300

Merged
paulvanbrenk merged 4 commits intomainfrom
merge/apn-omnnqk
Feb 16, 2026
Merged

fix: Replace hardcoded URLs with configurable APP_BASE_URL (apn-rm6a9)#300
paulvanbrenk merged 4 commits intomainfrom
merge/apn-omnnqk

Conversation

@paulvanbrenk
Copy link
Collaborator

Summary

  • Replaces all hardcoded patchnotes.dev and myreleasenotes.ai URLs with configurable App:BaseUrl (C#) and APP_BASE_URL env var (TypeScript)
  • Updates EmailTemplateRoutes, SubscriptionRoutes, resend.ts, and sendDigest.ts
  • Adds App:BaseUrl to appsettings.json configuration
  • Fixes pre-existing formatting issues found by dotnet format

Polecat: slit | Bead: apn-rm6a9

Test plan

  • dotnet test PatchNotes.slnx — 395 tests pass
  • pnpm exec vitest run (email) — 8 tests pass
  • dotnet format PatchNotes.slnx — clean
  • Verify email links point to correct domain

🤖 Generated with Claude Code

paulvanbrenk and others added 2 commits February 16, 2026 14:25
Centralizes the app base URL in configuration (App:BaseUrl in appsettings.json
for C#, APP_BASE_URL env var for TS) instead of scattering hardcoded
patchnotes.dev and myreleasenotes.ai URLs across the codebase.

- Fix email seed templates using patchnotes.dev to use app.myreleasenotes.ai
- Read SubscriptionRoutes allowed origins from configuration
- Add APP_BASE_URL to resend.ts, derive SETTINGS_URL from it
- Use APP_BASE_URL in sendDigest.ts instead of hardcoded domain

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@paulvanbrenk paulvanbrenk merged commit c6248db into main Feb 16, 2026
4 checks passed
@paulvanbrenk paulvanbrenk deleted the merge/apn-omnnqk branch February 16, 2026 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant