Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

chore: fix redirect for static files (#7473)

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