chore: build fixes, missing translations, PWA caching

This commit is contained in:
2025-05-02 17:18:00 +02:00
parent 2f946a37b4
commit 35ded92a64
4 changed files with 17 additions and 9 deletions
+11 -1
View File
@@ -11,7 +11,17 @@ export default defineConfig({
workbox: {
disableDevLogs: true,
globPatterns: ['**/*.{js,css,html,png,svg,jpg,ico}'],
cleanupOutdatedCaches: true
cleanupOutdatedCaches: true,
runtimeCaching: [
{
urlPattern: /^https:\/\/stacjownik.spythere.eu\/api\/getSceneries/i,
handler: 'NetworkFirst',
options: {
cacheName: 'stacjownik-api-cache',
cacheableResponse: { statuses: [0, 200] }
}
}
]
},
devOptions: { enabled: false, suppressWarnings: true }
})