diff --git a/deploy/blog-locations.conf b/deploy/blog-locations.conf index e998d4e..c9f2509 100644 --- a/deploy/blog-locations.conf +++ b/deploy/blog-locations.conf @@ -8,6 +8,10 @@ location = /nginx-health { return 204; } +location ^~ /dist/ { + rewrite ^/dist/[^/]+/?(.*)$ /$1 last; +} + location ~* \.(?:css|js|mjs|png|jpg|jpeg|gif|svg|webp|ico|woff2?)$ { try_files $uri =404; expires 1y;