From c63f8c5c4dc175f6fcd3ba79ccc5c0207db17606 Mon Sep 17 00:00:00 2001 From: jtricerolph Date: Sun, 12 Jul 2026 13:23:38 +0000 Subject: [PATCH] =?UTF-8?q?Fix=20registerSW.js=20404=20=E2=80=94=20add=20r?= =?UTF-8?q?oot=20to=20server=20block?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PWA exact-match location blocks had no root directive so try_files $uri resolved against nginx's default /etc/nginx/html instead of /usr/share/nginx/html. Moving root to server level fixes all three PWA blocks (registerSW.js, sw.js, manifest.webmanifest). Co-Authored-By: Claude Sonnet 4.6 --- frontend/nginx.conf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/nginx.conf b/frontend/nginx.conf index 4cf696f..5ba8649 100644 --- a/frontend/nginx.conf +++ b/frontend/nginx.conf @@ -1,4 +1,6 @@ server { + root /usr/share/nginx/html; + location = /rates/manifest.webmanifest { default_type application/manifest+json; add_header Cache-Control "no-cache";