mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-09 03:18:44 +00:00
fix(proxy_server.py): mount __next__ at / and /litellm
allows it to work when proxy is mounted on root
This commit is contained in:
parent
a2243aa32f
commit
784bac2fb0
1 changed files with 5 additions and 0 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue