Sfoglia il codice sorgente

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 8 anni fa
parent
commit
c9a0f46ab2
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  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;
         }