From 784bac2fb07aaac77c8956bfc88fe2db16b3f305 Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Mon, 2 Jun 2025 17:08:58 -0700 Subject: [PATCH] fix(proxy_server.py): mount __next__ at / and /litellm allows it to work when proxy is mounted on root --- litellm/proxy/proxy_server.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/litellm/proxy/proxy_server.py b/litellm/proxy/proxy_server.py index ed9ad4838c8..2dc086ef979 100644 --- a/litellm/proxy/proxy_server.py +++ b/litellm/proxy/proxy_server.py @@ -750,6 +750,11 @@ try: StaticFiles(directory=os.path.join(ui_path, "_next")), name="next_static", ) + app.mount( + "/litellm/_next", + StaticFiles(directory=os.path.join(ui_path, "_next")), + name="next_static", + ) # print(f"mounted _next at {server_root_path}/ui/_next") app.mount("/ui", StaticFiles(directory=ui_path, html=True), name="ui")