Forráskód Böngészése

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 éve
szülő
commit
c9a0f46ab2
1 módosított fájl, 1 hozzáadás és 0 törlés
  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;
         }