Implementar link handling y asociación con PWA hub
- Agregar capture_links en manifest para mejorar experiencia PWA - Crear archivo .well-known para asociación con inicio.nucleoriofrio.com - Configurar Traefik para servir .well-known sin autenticación
This commit is contained in:
@@ -20,8 +20,9 @@ services:
|
|||||||
# Router público para recursos PWA ESTÁTICOS (sin autenticación)
|
# Router público para recursos PWA ESTÁTICOS (sin autenticación)
|
||||||
# IMPORTANTE: Solo assets estáticos (JS, CSS, iconos, manifest, SW)
|
# IMPORTANTE: Solo assets estáticos (JS, CSS, iconos, manifest, SW)
|
||||||
# Las APIs (/api/*) NO están aquí - están protegidas abajo
|
# Las APIs (/api/*) NO están aquí - están protegidas abajo
|
||||||
|
# Incluye .well-known para scope extensions
|
||||||
# ==========================================
|
# ==========================================
|
||||||
- "traefik.http.routers.musica-nucleoriofrio-public.rule=Host(`musica.nucleoriofrio.com`) && (PathPrefix(`/_nuxt`) || PathPrefix(`/assets`) || Path(`/sw.js`) || PathPrefix(`/workbox-`) || Path(`/manifest.webmanifest`) || Path(`/manifest.json`) || Path(`/robots.txt`) || Path(`/favicon.ico`) || Path(`/logo.png`) || Path(`/logo-192.png`) || Path(`/logo-512.png`) || Path(`/logo-maskable-512.png`) || Path(`/icon.svg`)) && !PathPrefix(`/api/`)"
|
- "traefik.http.routers.musica-nucleoriofrio-public.rule=Host(`musica.nucleoriofrio.com`) && (PathPrefix(`/_nuxt`) || PathPrefix(`/assets`) || PathPrefix(`/.well-known`) || Path(`/sw.js`) || PathPrefix(`/workbox-`) || Path(`/manifest.webmanifest`) || Path(`/manifest.json`) || Path(`/robots.txt`) || Path(`/favicon.ico`) || Path(`/logo.png`) || Path(`/logo-192.png`) || Path(`/logo-512.png`) || Path(`/logo-maskable-512.png`) || Path(`/icon.svg`)) && !PathPrefix(`/api/`)"
|
||||||
- "traefik.http.routers.musica-nucleoriofrio-public.entrypoints=websecure"
|
- "traefik.http.routers.musica-nucleoriofrio-public.entrypoints=websecure"
|
||||||
- "traefik.http.routers.musica-nucleoriofrio-public.tls.certresolver=letsencrypt"
|
- "traefik.http.routers.musica-nucleoriofrio-public.tls.certresolver=letsencrypt"
|
||||||
- "traefik.http.routers.musica-nucleoriofrio-public.priority=100"
|
- "traefik.http.routers.musica-nucleoriofrio-public.priority=100"
|
||||||
|
|||||||
@@ -195,6 +195,8 @@ export default defineNuxtConfig({
|
|||||||
categories: ['music', 'entertainment'],
|
categories: ['music', 'entertainment'],
|
||||||
lang: 'es',
|
lang: 'es',
|
||||||
dir: 'ltr',
|
dir: 'ltr',
|
||||||
|
// Capturar enlaces dentro de la app
|
||||||
|
capture_links: 'existing-client-navigate',
|
||||||
icons: [
|
icons: [
|
||||||
{
|
{
|
||||||
src: '/logo-192.png',
|
src: '/logo-192.png',
|
||||||
|
|||||||
10
public/.well-known/web-app-origin-association
Normal file
10
public/.well-known/web-app-origin-association
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"web_apps": [
|
||||||
|
{
|
||||||
|
"manifest": "https://inicio.nucleoriofrio.com/manifest.webmanifest",
|
||||||
|
"details": {
|
||||||
|
"paths": ["/*"]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user