brought it back to V2, added it to vite config

This commit is contained in:
Carter 2025-06-04 16:33:18 -06:00
parent cfe05f8517
commit 727a20292f
2 changed files with 7 additions and 2 deletions

View file

@ -61,7 +61,12 @@ http {
expires $cache_expires; expires $cache_expires;
root /usr/share/nginx/html; root /usr/share/nginx/html;
try_files $uri /index.html; try_files $uri /indexV2.html;
location = /index.html {
return 301 /indexV2.html;
}
} }
# Healthcheck # Healthcheck

View file

@ -14,7 +14,7 @@ export default defineConfig({
globPatterns: ['**/*.{js,css,html,png,jpg,svg}'], // Cache all common asset types globPatterns: ['**/*.{js,css,html,png,jpg,svg}'], // Cache all common asset types
maximumFileSizeToCacheInBytes: 20 * 1024 * 1024, // 20 MiB maximumFileSizeToCacheInBytes: 20 * 1024 * 1024, // 20 MiB
cleanupOutdatedCaches: true, cleanupOutdatedCaches: true,
navigateFallback: "/index.html", navigateFallback: "/indexV2.html",
runtimeCaching: [ runtimeCaching: [
{ {
urlPattern: ({ request }) => request.destination === 'document', urlPattern: ({ request }) => request.destination === 'document',