Implementar link handling y asociación con PWA hub
Some checks failed
build-and-deploy / build (push) Failing after 46s
build-and-deploy / deploy (push) Has been cancelled

- Agregar capture_links en manifest para mejorar experiencia PWA
- Crear archivo .well-known para asociación con inicio.nucleoriofrio.com
- Agregar router público en Traefik para recursos PWA y .well-known
This commit is contained in:
2025-10-17 02:15:33 -06:00
parent e28c6b925e
commit 482eafb8b4
3 changed files with 19 additions and 0 deletions

View File

@@ -33,6 +33,13 @@ services:
# Service
- "traefik.http.services.seguidor-lotes.loadbalancer.server.port=3000"
# Router público para recursos PWA (sin autenticación)
- "traefik.http.routers.seguidor-lotes-public.rule=Host(`${APP_DOMAIN}`) && (PathPrefix(`/.well-known`) || Path(`/manifest.webmanifest`) || Path(`/sw.js`) || PathPrefix(`/workbox-`) || PathPrefix(`/icon-`) || Path(`/favicon.ico`))"
- "traefik.http.routers.seguidor-lotes-public.entrypoints=websecure"
- "traefik.http.routers.seguidor-lotes-public.tls.certresolver=letsencrypt"
- "traefik.http.routers.seguidor-lotes-public.priority=100"
- "traefik.http.routers.seguidor-lotes-public.service=seguidor-lotes"
# Middleware (opcional: puedes añadir rate limiting, compression, etc.)
- "traefik.http.routers.seguidor-lotes.middlewares=seguidor-lotes-headers"
- "traefik.http.middlewares.seguidor-lotes-headers.headers.customrequestheaders.X-Forwarded-Proto=https"

View File

@@ -38,6 +38,8 @@ export default defineNuxtConfig({
display: 'standalone',
background_color: '#1f2730',
theme_color: '#1f2730',
// Capturar enlaces dentro de la app
capture_links: 'existing-client-navigate',
icons: [
{
src: 'icon-16x16.png',

View File

@@ -0,0 +1,10 @@
{
"web_apps": [
{
"manifest": "https://inicio.nucleoriofrio.com/manifest.webmanifest",
"details": {
"paths": ["/*"]
}
}
]
}