From cfe05f8517c5d163f9c19db6f797fac464a3b1e5 Mon Sep 17 00:00:00 2001 From: Carter Date: Wed, 4 Jun 2025 16:18:06 -0600 Subject: [PATCH 1/2] back to original index --- nginx.conf | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/nginx.conf b/nginx.conf index adb8457..8e8fc75 100644 --- a/nginx.conf +++ b/nginx.conf @@ -61,12 +61,7 @@ http { expires $cache_expires; root /usr/share/nginx/html; - try_files $uri /indexV2.html; - - location = /index.html { - return 301 /indexV2.html; - } - + try_files $uri /index.html; } # Healthcheck From 727a20292fccf892db682a05e64be853bc6f228c Mon Sep 17 00:00:00 2001 From: Carter Date: Wed, 4 Jun 2025 16:33:18 -0600 Subject: [PATCH 2/2] brought it back to V2, added it to vite config --- nginx.conf | 7 ++++++- vite.config.ts | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/nginx.conf b/nginx.conf index 8e8fc75..adb8457 100644 --- a/nginx.conf +++ b/nginx.conf @@ -61,7 +61,12 @@ http { expires $cache_expires; root /usr/share/nginx/html; - try_files $uri /index.html; + try_files $uri /indexV2.html; + + location = /index.html { + return 301 /indexV2.html; + } + } # Healthcheck diff --git a/vite.config.ts b/vite.config.ts index 551f1ce..ec8ea02 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -14,7 +14,7 @@ export default defineConfig({ globPatterns: ['**/*.{js,css,html,png,jpg,svg}'], // Cache all common asset types maximumFileSizeToCacheInBytes: 20 * 1024 * 1024, // 20 MiB cleanupOutdatedCaches: true, - navigateFallback: "/index.html", + navigateFallback: "/indexV2.html", runtimeCaching: [ { urlPattern: ({ request }) => request.destination === 'document',