feat(portal): allow PORTAL_APEX_HOSTS env to extend APEX_HOSTS #15

Merged
sharang merged 1 commits from feat/env-driven-apex-hosts into main 2026-06-10 12:05:53 +00:00

1 Commits

Author SHA1 Message Date
Sharang Parnerkar eb98391f80 feat(portal): allow PORTAL_APEX_HOSTS env to extend APEX_HOSTS
ci / shared (pull_request) Successful in 13s
ci / test (pull_request) Successful in 10m20s
ci / e2e (pull_request) Has been skipped
ci / image (pull_request) Has been skipped
Hardcoded apex list is fine while breakpilot.com is the only target
but blocks deploying the portal under any other hostname. Adds a
comma-separated PORTAL_APEX_HOSTS env that prepends extras to the
default list (longest-first so the suffix-strip loop stays correct).

Needed today to deploy at portal-dev.meghsakha.com without forking
the codebase per environment. The default list still covers dev
(localhost) and prod (breakpilot.com, stage.breakpilot.com).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-10 13:03:36 +02:00