From 3c7c472e6438f2ea4551d31717f309977de85f6b Mon Sep 17 00:00:00 2001 From: SysAdmin Agent Date: Sat, 4 Apr 2026 22:05:42 +0000 Subject: [PATCH] Fix nginx: add text/javascript to sub_filter_types for GrampsWeb subpath rewriting (STI-91) GrampsWeb serves JS files with Content-Type text/javascript, but nginx sub_filter_types only listed application/javascript. This caused JS bundles to pass through without path rewriting, resulting in API calls going to /api/ instead of /ahnenforschung/api/ (404 errors on login). Co-Authored-By: Paperclip --- deploy-production/nginx.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy-production/nginx.conf b/deploy-production/nginx.conf index 6c4c1f6..9ecd078 100644 --- a/deploy-production/nginx.conf +++ b/deploy-production/nginx.conf @@ -99,7 +99,7 @@ server { proxy_set_header Accept-Encoding ""; # Apply sub_filter to HTML, JS, and CSS responses - sub_filter_types application/javascript text/css; + sub_filter_types application/javascript text/javascript text/css; sub_filter_once off; # HTML: set so the SPA router knows its prefix