From 472519dc996deab6f448acb09ebee5f650b3cc4f Mon Sep 17 00:00:00 2001 From: Carter Date: Mon, 19 Jan 2026 14:53:03 -0600 Subject: [PATCH] added changes that prevent nginx welcome error --- nginx.conf | 10 +++++----- vite.config.ts | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/nginx.conf b/nginx.conf index 1537b32..4411199 100644 --- a/nginx.conf +++ b/nginx.conf @@ -78,18 +78,18 @@ http { } # Redirect old /index.html requests to new file - location = /index.html { - return 301 /indexV2.html; - } + # location = /index.html { + # return 301 /indexV2.html; + # } # Serve indexV2.html directly without redirect loop - location = /indexV2.html { + location = /index.html { root /usr/share/nginx/html; } # Fallback for SPA routing — all unmatched routes go to indexV2.html location / { - try_files $uri /indexV2.html; + try_files $uri /index.html; } } diff --git a/vite.config.ts b/vite.config.ts index acc8cb4..f48db4a 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -17,7 +17,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: "/indexV2.html", + navigateFallback: "/index.html", runtimeCaching: [ { urlPattern: ({ request }) => request.destination === 'document', @@ -53,7 +53,7 @@ export default defineConfig({ target: 'esnext', rollupOptions: { input: { - main: path.resolve(__dirname, 'indexV2.html') + main: path.resolve(__dirname, 'index.html') } } },