From 6bdc23b9d3577b9b3cf99b66a3c37ea200d96f37 Mon Sep 17 00:00:00 2001 From: fullsizemalt <106900403+fullsizemalt@users.noreply.github.com> Date: Fri, 9 Jan 2026 01:24:41 -0800 Subject: [PATCH] Fix nginx config to serve static assets correctly Add /assets/ location block to serve JS/CSS with correct MIME types instead of falling back to index.html. --- frontend/nginx.conf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/frontend/nginx.conf b/frontend/nginx.conf index 83a261a..3ea3adf 100644 --- a/frontend/nginx.conf +++ b/frontend/nginx.conf @@ -30,6 +30,12 @@ server { add_header Content-Disposition "attachment; filename=visitorkiosk.apk"; } + # Static assets (JS, CSS, images, fonts) + location /assets/ { + try_files $uri =404; + add_header Cache-Control "public, max-age=31536000, immutable"; + } + # Frontend SPA routing location / { try_files $uri $uri/ /index.html;