fix: remove root redirect, /platform/ is the entry point
All checks were successful
CI / build (push) Successful in 42s
CI / docker (push) Successful in 5s

Server-side path rewrite breaks React Router (browser URL stays at /
but basename is /platform). The SPA entry point is /platform/ — users
bookmark that. Root / goes to Logto catch-all which is correct for
direct OIDC flows.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
hsiegeln
2026-04-05 23:21:53 +02:00
parent bbace4698f
commit 5a847e075c

View File

@@ -147,14 +147,6 @@ services:
- traefik.http.routers.saas.entrypoints=websecure - traefik.http.routers.saas.entrypoints=websecure
- traefik.http.routers.saas.tls=true - traefik.http.routers.saas.tls=true
- traefik.http.services.saas.loadbalancer.server.port=8080 - traefik.http.services.saas.loadbalancer.server.port=8080
- traefik.http.routers.root-redirect.rule=Path(`/`)
- traefik.http.routers.root-redirect.priority=100
- traefik.http.routers.root-redirect.entrypoints=websecure
- traefik.http.routers.root-redirect.tls=true
- traefik.http.routers.root-redirect.middlewares=root-to-platform
- traefik.http.routers.root-redirect.service=saas
- traefik.http.middlewares.root-to-platform.replacepathregex.regex=^/$$
- traefik.http.middlewares.root-to-platform.replacepathregex.replacement=/platform/
networks: networks:
- cameleer - cameleer