Commit efce527
authored
fix: enable header-based tenant routing for demo and register CurrentAccountService (#1248)
Cloudflare does not proxy *.demo.meridianhub.cloud subdomains, so the
production subdomain-based transport fails with 503 in the demo env.
Switch to header-based routing (X-Tenant-Slug) when VITE_DEMO_MODE is
set, matching dev mode behaviour. Requires LOCAL_DEV_MODE=true on the
demo server (already applied).
Separately, CurrentAccountService was excluded from the Vanguard
transcoder due to REST route conflicts with InternalAccountService.
The comment claimed it was "still reachable via Connect protocol" but
this was incorrect — unregistered services are 404 for all HTTP
protocols. Adding it to serviceNames allows Connect-protocol requests
to route correctly; REST lien routes continue to resolve to
InternalAccountService (registered first).
Co-authored-by: Ben Coombs <bjcoombs@users.noreply.github.com>1 parent 2556990 commit efce527
2 files changed
Lines changed: 9 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
745 | 745 | | |
746 | 746 | | |
747 | 747 | | |
748 | | - | |
749 | | - | |
750 | | - | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
751 | 753 | | |
752 | 754 | | |
753 | 755 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
18 | 20 | | |
19 | | - | |
| 21 | + | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
| |||
0 commit comments