- Docker Compose Setup (PocketBase + SvelteKit Node) - Auth: Login, Registrierung (Verein + User in PocketBase) - Geschützte App-Shell mit Bottom-Navigation (Mobile-first) - Platzhalterseiten: Mitglieder, Termine, Beiträge, Nachrichten - TypeScript-Typen für alle Collections - PWA-Manifest für vereins.haus - Makefile für SSH-Deploy auf Synology DS
39 lines
1.1 KiB
TypeScript
39 lines
1.1 KiB
TypeScript
import { sveltekit } from '@sveltejs/kit/vite';
|
|
import { defineConfig } from 'vite';
|
|
import { VitePWA } from 'vite-plugin-pwa';
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
sveltekit(),
|
|
VitePWA({
|
|
registerType: 'autoUpdate',
|
|
manifest: {
|
|
name: 'vereins.haus',
|
|
short_name: 'vereins.haus',
|
|
description: 'Vereinsverwaltung die einfach funktioniert',
|
|
theme_color: '#1e40af',
|
|
background_color: '#f8fafc',
|
|
display: 'standalone',
|
|
start_url: '/',
|
|
icons: [
|
|
{ src: '/icons/icon-192.png', sizes: '192x192', type: 'image/png', purpose: 'any' },
|
|
{ src: '/icons/icon-512.png', sizes: '512x512', type: 'image/png', purpose: 'any maskable' },
|
|
{ src: '/icons/apple-touch-icon.png', sizes: '180x180', type: 'image/png' }
|
|
]
|
|
},
|
|
workbox: {
|
|
globPatterns: ['**/*.{js,css,html,svg,png,ico}'],
|
|
runtimeCaching: [
|
|
{
|
|
urlPattern: /^https:\/\/api\.vereins\.haus\/.*/i,
|
|
handler: 'NetworkFirst',
|
|
options: {
|
|
cacheName: 'pocketbase-api',
|
|
expiration: { maxEntries: 100, maxAgeSeconds: 60 * 60 * 24 }
|
|
}
|
|
}
|
|
]
|
|
}
|
|
})
|
|
]
|
|
});
|