fix: quote nginx regex to prevent brace parsing as block delimiter
All checks were successful
Deploy Internet for Kids / Build & Push (push) Successful in 20s
Deploy Internet for Kids / Deploy (push) Successful in 6s
Deploy Internet for Kids / Health Check (push) Successful in 2s
Deploy Internet for Kids / Smoke Tests (push) Successful in 3s
Deploy Internet for Kids / Rollback (push) Has been skipped
Deploy Internet for Kids / Audit (push) Successful in 2s

The {32} quantifier in the language redirect regex was being consumed
by nginx's config parser as a block delimiter, truncating the pattern
and causing pcre2_compile to fail with missing closing parenthesis.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Christian Gick
2026-04-03 06:58:33 +03:00
parent 9bba0b4787
commit 19c720b55f

View File

@@ -35,7 +35,7 @@ server {
}
# Redirect unprefixed paths to /en/
location ~ ^/(?!en/|de/|fr/|css/|js/|img/|favicon|android|apple|site|llms|health|robots|index\.xml|[0-9a-f]{32}\.txt) {
location ~ "^/(?!en/|de/|fr/|css/|js/|img/|favicon|android|apple|site|llms|health|robots|index\.xml|[0-9a-f]{32}\.txt)" {
return 302 /en$request_uri;
}