瀏覽代碼

chore: fixed issue with production nginx routes

Vos 5 年之前
父節點
當前提交
8aa069e4f0
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      frontend/prod.nginx.conf

+ 3 - 3
frontend/prod.nginx.conf

@@ -16,10 +16,10 @@ http {
         listen       80;
         server_name _;
 
+        root /opt/app/dist;
+
         location / {
-            try_files $uri $uri/ /index.html;
-            root   /opt/app/dist;
-            index  build/index.html;
+            try_files $uri /build/$uri /build/index.html =404;
         }
     }
 }