This commit is contained in:
seb
2026-10-04 19:12:55 +02:00
parent 9146ebaba1
commit 669954b496
7 changed files with 145 additions and 114 deletions

View File

@@ -288,45 +288,45 @@ export default defineConfig(({ command }) => ({
nginxHeadersPreviewPlugin(),
...(command === 'build'
? [
VitePWA({
registerType: 'autoUpdate',
injectRegister: 'auto',
manifest: {
id: '/',
name: 'Dashfront',
short_name: 'Dashfront',
start_url: '/',
scope: '/',
display: 'standalone',
background_color: '#c5ddd8',
theme_color: '#3b5bdb',
icons: [
{
src: '/icons/icon-192.png',
sizes: '192x192',
type: 'image/png',
},
{
src: '/icons/icon-512.png',
sizes: '512x512',
type: 'image/png',
},
{
src: '/icons/icon-512.png',
sizes: '512x512',
type: 'image/png',
purpose: 'maskable',
},
],
},
workbox: {
globPatterns: ['**/*.{js,css,html,ico,png,svg,webmanifest,woff2}'],
globIgnores: ['**/*.wasm'],
navigateFallback: 'index.html',
navigateFallbackDenylist: [/^\/api/],
},
}),
]
VitePWA({
registerType: 'autoUpdate',
injectRegister: 'auto',
manifest: {
id: '/',
name: 'Dashfront',
short_name: 'Dashfront',
start_url: '/',
scope: '/',
display: 'standalone',
background_color: '#85b7ad',
theme_color: '#3b5bdb',
icons: [
{
src: '/icons/icon-192.png',
sizes: '192x192',
type: 'image/png',
},
{
src: '/icons/icon-512.png',
sizes: '512x512',
type: 'image/png',
},
{
src: '/icons/icon-512.png',
sizes: '512x512',
type: 'image/png',
purpose: 'maskable',
},
],
},
workbox: {
globPatterns: ['**/*.{js,css,html,ico,png,svg,webmanifest,woff2}'],
globIgnores: ['**/*.wasm'],
navigateFallback: 'index.html',
navigateFallbackDenylist: [/^\/api/],
},
}),
]
: []),
],
server: sharedServer,