Fix PWA manifest link injection and navigateFallback error
All checks were successful
build-and-deploy / build (push) Successful in 52s
build-and-deploy / deploy (push) Successful in 3s

- Add useHead() in app.vue to inject manifest and PWA meta tags
- Set navigateFallback to undefined to prevent non-precached-url error
- Add includeAssets configuration for PWA module
- Fixes service worker error on initial page load

🤖 Generated with [Claude Code](https://claude.com/claude-code)
This commit is contained in:
2025-10-13 00:20:19 -06:00
parent ef28c74504
commit 85cc2306d5
2 changed files with 16 additions and 1 deletions

View File

@@ -22,6 +22,7 @@ export default defineNuxtConfig({
pwa: {
registerType: 'autoUpdate',
includeAssets: ['favicon.ico', 'apple-touch-icon.png', 'icon.svg'],
manifest: {
name: 'Plantilla Nuxt + Authentik',
short_name: 'NuxtAuth',
@@ -54,7 +55,7 @@ export default defineNuxtConfig({
]
},
workbox: {
navigateFallback: '/',
navigateFallback: undefined,
globPatterns: ['**/*.{js,css,html,png,svg,ico}'],
cleanupOutdatedCaches: true,
runtimeCaching: [