i18n front : facettes localisées + Web Push (SW push, abonnement, toggle profil)
Build & Deploy / build (push) Successful in 6s

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-07-19 03:46:43 +02:00
co-authored by Claude Opus 4.8
parent d8fc93ff5d
commit 4e11e97b14
6 changed files with 149 additions and 21 deletions
+6 -14
View File
@@ -58,7 +58,13 @@ export default defineNuxtConfig({
},
pwa: {
strategies: 'injectManifest',
srcDir: 'service-worker',
filename: 'sw.ts',
registerType: 'autoUpdate',
injectManifest: {
globPatterns: ['**/*.{js,css,html,svg,png,ico,woff2}']
},
manifest: {
name: 'StreakFit',
short_name: 'StreakFit',
@@ -75,20 +81,6 @@ export default defineNuxtConfig({
{ src: '/pwa-512.png', sizes: '512x512', type: 'image/png', purpose: 'maskable' }
]
},
workbox: {
navigateFallback: '/',
globPatterns: ['**/*.{js,css,html,svg,png,wo4,woff2}'],
runtimeCaching: [
{
urlPattern: ({ url }: { url: URL }) => url.hostname === 's3.nfteam.ovh',
handler: 'CacheFirst',
options: {
cacheName: 'sf-media',
expiration: { maxEntries: 500, maxAgeSeconds: 60 * 60 * 24 * 30 }
}
}
]
},
client: { installPrompt: true }
},