frontend/pwa.config.ts
Nathan Lamy b9d99c5424
All checks were successful
Deploy to Netlify / Deploy to Netlify (push) Successful in 1m39s
chore: try fixing pwa register
2025-08-19 23:22:18 +02:00

36 lines
830 B
TypeScript

export default {
workbox: {
importScripts: ["/sw/push.js"],
},
includeAssets: [
"favicon.ico",
"favicon-96x96.png",
"web-app-manifest-192x192.png",
"web-app-manifest-512x512.png",
"apple-touch-icon.png",
],
registerType: "autoUpdate",
manifest: {
lang: "fr",
name: "Khollisé ⚔️",
short_name: "Khollisé",
description: "BJColle but faster, better and prettier ⚡️",
theme_color: "#0d0d0d",
background_color: "#f4efe3",
orientation: "portrait",
display: "standalone",
icons: [
{
src: "/web-app-manifest-192x192.png",
sizes: "192x192",
type: "image/png",
},
{
src: "/web-app-manifest-512x512.png",
sizes: "512x512",
type: "image/png",
},
],
},
injectRegister: "script",
};