- Source-Copy von /root/entwicklung/pfandsystem - docker-compose.yml umgeschrieben: pfandsystem-demo-* Container, Ports 3308/8083/3003 (alle localhost) - Traefik-Label fuer pfandsystem.dockly.de - Erweitertes Multi-Tenant-Schema (tenants, tenant_id auf allen Tabellen) - Neue Tabellen: kunden_bilder, geraete - Neue Spalten: kunden.anlieferungshinweis, kunden.lieferzeit_bis - Rollen: superadmin, admin, user, fahrer - .env.example + README Code-Refactor (Tailwind, Multi-Tenant-Middleware, Erweiterungen) folgt.
43 lines
989 B
JavaScript
43 lines
989 B
JavaScript
import { defineConfig } from 'vite';
|
|
import react from '@vitejs/plugin-react';
|
|
import { VitePWA } from 'vite-plugin-pwa';
|
|
|
|
export default defineConfig({
|
|
plugins: [
|
|
react(),
|
|
VitePWA({
|
|
registerType: 'autoUpdate',
|
|
manifest: {
|
|
name: 'Pfandsystem PWA',
|
|
short_name: 'PfandPWA',
|
|
start_url: '.',
|
|
display: 'standalone',
|
|
background_color: '#ffffff',
|
|
theme_color: '#1976d2',
|
|
description: 'Digitale Pfandverwaltung für Bäckereien',
|
|
icons: [
|
|
{
|
|
src: 'icon-192.png',
|
|
sizes: '192x192',
|
|
type: 'image/png'
|
|
},
|
|
{
|
|
src: 'icon-512.png',
|
|
sizes: '512x512',
|
|
type: 'image/png'
|
|
}
|
|
]
|
|
},
|
|
includeAssets: ['icon-192.png', 'icon-512.png'],
|
|
manifestFilename: 'manifest.webmanifest',
|
|
injectRegister: 'auto',
|
|
})
|
|
],
|
|
build: {
|
|
outDir: 'dist',
|
|
},
|
|
server: {
|
|
port: 5173,
|
|
},
|
|
});
|