From c287b3cf0240422fe44d22451e016892bddd0a38 Mon Sep 17 00:00:00 2001 From: Christian Gick Date: Fri, 3 Apr 2026 15:49:27 +0300 Subject: [PATCH] fix: exclude /data/ and /fonts/ from language redirect in nginx /data/countries-110m.json was being 302'd to /en/data/ which 404'd. Also exclude /fonts/ for self-hosted Newsreader woff2 files. Co-Authored-By: Claude Opus 4.6 (1M context) --- nginx.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nginx.conf b/nginx.conf index 68a5a58..8495a9d 100644 --- a/nginx.conf +++ b/nginx.conf @@ -40,7 +40,7 @@ server { } # Redirect unprefixed paths to /en/ - location ~ "^/(?!en/|de/|fr/|css/|js/|img/|favicon|android|apple|site|llms|health|robots|index\.xml|BingSiteAuth|[0-9a-f]{32}\.txt)" { + location ~ "^/(?!en/|de/|fr/|css/|js/|data/|fonts/|img/|favicon|android|apple|site|llms|health|robots|index\.xml|BingSiteAuth|[0-9a-f]{32}\.txt)" { return 302 $real_scheme://$host/en$request_uri; }