PWA
Some checks failed
Build and Push Docker Images / build-backend (push) Successful in 31s
Build and Push Docker Images / build-frontend (push) Failing after 20s

This commit is contained in:
2026-02-04 16:02:47 +01:00
parent 59fdedfaa0
commit 4b7cf171c8
5 changed files with 65 additions and 1 deletions

View File

@@ -9,6 +9,7 @@ export default fp(async (server: FastifyInstance) => {
"http://localhost:3001", // dein Nuxt-Frontend
"http://127.0.0.1:3000", // dein Nuxt-Frontend
"http://192.168.1.227:3001", // dein Nuxt-Frontend
"http://192.168.1.234:3000", // dein Nuxt-Frontend
"http://192.168.1.113:3000", // dein Nuxt-Frontend
"https://beta.fedeo.de", // dein Nuxt-Frontend
"https://app.fedeo.de", // dein Nuxt-Frontend

View File

@@ -7,7 +7,7 @@ export default defineNuxtConfig({
}
},
modules: ['@pinia/nuxt', '@nuxt/ui', '@nuxtjs/supabase', "nuxt-editorjs", '@nuxtjs/fontaine', 'nuxt-viewport', '@nuxtjs/leaflet', '@vueuse/nuxt'],
modules: ['@vite-pwa/nuxt','@pinia/nuxt', '@nuxt/ui', '@nuxtjs/supabase', "nuxt-editorjs", '@nuxtjs/fontaine', 'nuxt-viewport', '@nuxtjs/leaflet', '@vueuse/nuxt'],
ssr: false,
@@ -96,5 +96,68 @@ export default defineNuxtConfig({
}
},
pwa: {
/* Automatische Updates des Service Workers (optional, aber empfohlen) */
registerType: 'autoUpdate',
manifest: {
name: 'FEDEO',
short_name: 'FEDEO',
description: 'FEDEO',
theme_color: '#69c350',
background_color: '#ffffff',
/* WICHTIG: Dies sorgt dafür, dass die URL-Leiste verschwindet */
display: 'standalone',
/* Icons sind essentiell für den Home Screen */
icons: [
{
src: '192.png',
sizes: '192x192',
type: 'image/png'
},
{
src: '512.png',
sizes: '512x512',
type: 'image/png'
},
{
src: '512.png',
sizes: '512x512',
type: 'image/png',
purpose: 'any maskable'
}
]
},
/* WICHTIG FÜR SAFARI / iOS */
workbox: {
navigateFallback: '/',
},
devOptions: {
enabled: true, // Damit du es auch lokal testen kannst
type: 'module',
},
},
app: {
head: {
meta: [
// Sagt iOS, dass es eine WebApp ist
{ name: 'apple-mobile-web-app-capable', content: 'yes' },
// Steuert die Farbe der Statusleiste (weiß, schwarz oder transparent)
{ name: 'apple-mobile-web-app-status-bar-style', content: 'black-translucent' },
// Name der App unter dem Icon
{ name: 'apple-mobile-web-app-title', content: 'FEDEO' },
],
link: [
// Wichtig: Das Icon für den Home Screen
{ rel: 'apple-touch-icon', href: '/512.png' }
]
}
},
compatibilityDate: '2024-12-18'
})

BIN
frontend/public/180.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

BIN
frontend/public/192.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.6 KiB

BIN
frontend/public/512.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB