Преглед изворни кода

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