diff --git a/.github/deployment/front/affine.nginx.conf b/.github/deployment/front/affine.nginx.conf index 9a303309df..067c344c3a 100644 --- a/.github/deployment/front/affine.nginx.conf +++ b/.github/deployment/front/affine.nginx.conf @@ -6,6 +6,11 @@ server { try_files $uri/index.html $uri/ $uri /admin/index.html; } + location ~ ^/(_plugin|assets|imgs|js|plugins|static)/ { + root /app/dist/; + try_files $uri $uri/ =404; + } + location / { root /app/dist/; index index.html;