i18n front : facettes localisées + Web Push (SW push, abonnement, toggle profil)
Build & Deploy / build (push) Successful in 6s
Build & Deploy / build (push) Successful in 6s
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
+6
-14
@@ -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 }
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user