瀏覽代碼

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 年之前
父節點
當前提交
c9a0f46ab2
共有 1 個文件被更改,包括 1 次插入0 次删除
  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;
         }