fix: remove root redirect, /platform/ is the entry point
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:
@@ -147,14 +147,6 @@ services:
|
||||
- traefik.http.routers.saas.entrypoints=websecure
|
||||
- traefik.http.routers.saas.tls=true
|
||||
- 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:
|
||||
- cameleer
|
||||
|
||||
|
||||
Reference in New Issue
Block a user