You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: pass root_path to FastAPI constructor instead of uvicorn
When lightspeed-stack runs behind 3scale with ROOT_PATH=/api/lightspeed,
requests arrive with a doubled path prefix because uvicorn injects
root_path into scope['root_path'] and Starlette concatenates it with
the already-prefixed scope['path'] from 3scale.
Move root_path from uvicorn.run() to the FastAPI() constructor, matching
how rlsapi handles it.
Signed-off-by: Major Hayden <major@redhat.com>
0 commit comments