frontend/vite.config.js gelöscht
This commit is contained in:
@@ -1,37 +0,0 @@
|
|||||||
import { defineConfig } from 'vite'
|
|
||||||
import react from '@vitejs/plugin-react'
|
|
||||||
import { VitePWA } from 'vite-plugin-pwa'
|
|
||||||
|
|
||||||
export default defineConfig({
|
|
||||||
plugins: [
|
|
||||||
react(),
|
|
||||||
VitePWA({
|
|
||||||
registerType: 'autoUpdate',
|
|
||||||
includeAssets: ['icon.svg', 'icon-192.png', 'icon-512.png'],
|
|
||||||
manifest: {
|
|
||||||
name: 'Dicken Dock',
|
|
||||||
short_name: 'DickenDock',
|
|
||||||
description: 'Dein modulares Tool-Dashboard',
|
|
||||||
theme_color: '#0d0d0f',
|
|
||||||
background_color: '#0d0d0f',
|
|
||||||
display: 'standalone',
|
|
||||||
orientation: 'portrait',
|
|
||||||
start_url: '/',
|
|
||||||
icons: [
|
|
||||||
{ src: '/icon-192.png', sizes: '192x192', type: 'image/png' },
|
|
||||||
{ src: '/icon-512.png', sizes: '512x512', type: 'image/png' },
|
|
||||||
{ src: '/icon-512.png', sizes: '512x512', type: 'image/png', purpose: 'maskable' }
|
|
||||||
]
|
|
||||||
},
|
|
||||||
workbox: {
|
|
||||||
globPatterns: ['**/*.{js,css,html,svg,png}'],
|
|
||||||
runtimeCaching: [{
|
|
||||||
urlPattern: /^\/api\/.*/i,
|
|
||||||
handler: 'NetworkFirst',
|
|
||||||
options: { cacheName: 'api-cache', networkTimeoutSeconds: 10 }
|
|
||||||
}]
|
|
||||||
}
|
|
||||||
})
|
|
||||||
],
|
|
||||||
server: { proxy: { '/api': 'http://localhost:4000' } },
|
|
||||||
})
|
|
||||||
Reference in New Issue
Block a user