mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-10 05:29:08 +08:00
chore: fix redirect for static files (#7473)
This commit is contained in:
@@ -6,6 +6,11 @@ server {
|
|||||||
try_files $uri/index.html $uri/ $uri /admin/index.html;
|
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 / {
|
location / {
|
||||||
root /app/dist/;
|
root /app/dist/;
|
||||||
index index.html;
|
index index.html;
|
||||||
|
|||||||
Reference in New Issue
Block a user