brought it back to V2, added it to vite config
This commit is contained in:
parent
cfe05f8517
commit
727a20292f
2 changed files with 7 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue