Explorar o código

Always serve index.html, since we're doing a single page app that uses vue-router. We need to add a catch-all route of some sort to handle missing pages.

Cameron Kline %!s(int64=8) %!d(string=hai) anos
pai
achega
c9a0f46ab2
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      frontend/nginx.conf

+ 1 - 0
frontend/nginx.conf

@@ -17,6 +17,7 @@ http {
         server_name  localhost;
 
         location / {
+            try_files $uri $uri/ /index.html;
             root   /opt/app/build;
             index  index.html;
         }