From f0c02bf12ea52b8b6bbe9ebbfc228fccfcb4cb2f Mon Sep 17 00:00:00 2001 From: Spythere Date: Fri, 24 May 2024 13:43:29 +0200 Subject: [PATCH] chore: pwa adjustments --- vite.config.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/vite.config.ts b/vite.config.ts index 2452fc7..b629cac 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -7,6 +7,10 @@ export default defineConfig({ port: 5001, open: true }, + preview: { + port: 4001, + open: true + }, publicDir: 'public', plugins: [ vue(), @@ -36,6 +40,10 @@ export default defineConfig({ cacheName: 'spythere-static-cache', cacheableResponse: { statuses: [0, 200] + }, + expiration: { + maxEntries: 100, + maxAgeSeconds: 60 * 60 * 8 } } }