mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-13 08:52:02 +00:00
fix(ui): strip ui prefix from static navigation payloads
This commit is contained in:
parent
a1eef44569
commit
6c9f9f50f3
1 changed files with 3 additions and 0 deletions
|
|
@ -91,6 +91,9 @@ http {
|
|||
# /ui/<page>.txt would otherwise be rewritten to HTML and break RSC
|
||||
# for nested routes. A genuinely missing payload must 404 (the
|
||||
# router degrades to a hard navigation); never fall back to HTML.
|
||||
location ~ ^/ui/(.+\.txt)$ {
|
||||
try_files /$1 =404;
|
||||
}
|
||||
location ~ \.txt$ {
|
||||
try_files $uri =404;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue