Admin-Bereich, PWA-Manifest und Deploy-Setup
- Admin: Login, Dashboard, Protokoll, Stationen mit QR-Links - PWA: vite-plugin-pwa mit Workbox Offline-Caching - SvelteKit adapter-node + Dockerfile für DS-Deployment - docker-compose.yml mit app + pocketbase Services - Makefile: make deploy Befehl
This commit is contained in:
parent
f2615c9e07
commit
18570a42f0
15 changed files with 6042 additions and 12 deletions
|
|
@ -1,6 +1,38 @@
|
|||
import { sveltekit } from '@sveltejs/kit/vite';
|
||||
import { defineConfig } from 'vite';
|
||||
import { VitePWA } from 'vite-plugin-pwa';
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [sveltekit()]
|
||||
plugins: [
|
||||
sveltekit(),
|
||||
VitePWA({
|
||||
registerType: 'autoUpdate',
|
||||
manifest: {
|
||||
name: 'checkflo — HACCP-Protokolle',
|
||||
short_name: 'checkflo',
|
||||
description: 'Digitale HACCP-Dokumentation für die Gastronomie',
|
||||
theme_color: '#0B1023',
|
||||
background_color: '#ffffff',
|
||||
display: 'standalone',
|
||||
start_url: '/',
|
||||
icons: [
|
||||
{ src: '/icons/icon-192.png', sizes: '192x192', type: 'image/png' },
|
||||
{ src: '/icons/icon-512.png', sizes: '512x512', type: 'image/png', purpose: 'any maskable' }
|
||||
]
|
||||
},
|
||||
workbox: {
|
||||
globPatterns: ['**/*.{js,css,html,svg,png,ico}'],
|
||||
runtimeCaching: [
|
||||
{
|
||||
urlPattern: /^https:\/\/api\.checkflo\.de\/.*/i,
|
||||
handler: 'NetworkFirst',
|
||||
options: {
|
||||
cacheName: 'pocketbase-api',
|
||||
expiration: { maxEntries: 50, maxAgeSeconds: 60 * 60 * 24 }
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
})
|
||||
]
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue