Browse Source

chore: fixed issue with production nginx routes

Vos 5 years ago
parent
commit
8aa069e4f0
1 changed files with 3 additions and 3 deletions
  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;
         }
     }
 }