diff --git a/deploy-production/nginx.conf b/deploy-production/nginx.conf index 065ed2b..3ef22bf 100644 --- a/deploy-production/nginx.conf +++ b/deploy-production/nginx.conf @@ -126,7 +126,11 @@ server { # JS: service worker route handling sub_filter 'createHandlerBoundToURL("/index.html")' 'createHandlerBoundToURL("/ahnenforschung/index.html")'; - # CSS: font paths — ../fonts/ resolves correctly from subpath, no rewrite needed + # CSS: fix font paths in fonts.css — the CSS lives at /ahnenforschung/fonts/fonts.css + # and references url('fonts/MaterialIcons.woff2') which resolves to + # /ahnenforschung/fonts/fonts/MaterialIcons.woff2 (double fonts/). + # Strip the fonts/ prefix so url('MaterialIcons.woff2') resolves correctly. + sub_filter "url('fonts/" "url('"; # WebSocket support proxy_http_version 1.1;