From 4591b3391e0ea6fb44d362c97ce2e5223b8432e9 Mon Sep 17 00:00:00 2001 From: darkskygit Date: Thu, 11 Jul 2024 08:25:33 +0000 Subject: [PATCH] chore: fix redirect for static files (#7473) --- .github/deployment/front/affine.nginx.conf | 5 +++++ 1 file changed, 5 insertions(+) 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;