fix(ui): strip ui prefix from static navigation payloads

This commit is contained in:
mrinal-berri 2026-11-09 15:17:40 -08:00
parent a1eef44569
commit 6c9f9f50f3

View file

@ -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;
}