diff --git a/ui/nginx.conf b/ui/nginx.conf index dd43defcde9..4ce2f44307c 100644 --- a/ui/nginx.conf +++ b/ui/nginx.conf @@ -91,6 +91,9 @@ http { # /ui/.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; }