chore: fix redirect for static files (#7473)

This commit is contained in:
darkskygit
2024-07-11 08:25:33 +00:00
parent c2f93f9512
commit 4591b3391e

View File

@@ -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;