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 - Agregar router público en Traefik para recursos PWA y .well-known
This commit is contained in:
@@ -33,6 +33,13 @@ services:
|
|||||||
# Service
|
# Service
|
||||||
- "traefik.http.services.seguidor-lotes.loadbalancer.server.port=3000"
|
- "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.)
|
# Middleware (opcional: puedes añadir rate limiting, compression, etc.)
|
||||||
- "traefik.http.routers.seguidor-lotes.middlewares=seguidor-lotes-headers"
|
- "traefik.http.routers.seguidor-lotes.middlewares=seguidor-lotes-headers"
|
||||||
- "traefik.http.middlewares.seguidor-lotes-headers.headers.customrequestheaders.X-Forwarded-Proto=https"
|
- "traefik.http.middlewares.seguidor-lotes-headers.headers.customrequestheaders.X-Forwarded-Proto=https"
|
||||||
|
|||||||
@@ -38,6 +38,8 @@ export default defineNuxtConfig({
|
|||||||
display: 'standalone',
|
display: 'standalone',
|
||||||
background_color: '#1f2730',
|
background_color: '#1f2730',
|
||||||
theme_color: '#1f2730',
|
theme_color: '#1f2730',
|
||||||
|
// Capturar enlaces dentro de la app
|
||||||
|
capture_links: 'existing-client-navigate',
|
||||||
icons: [
|
icons: [
|
||||||
{
|
{
|
||||||
src: 'icon-16x16.png',
|
src: 'icon-16x16.png',
|
||||||
|
|||||||
10
nuxt4-app/public/.well-known/web-app-origin-association
Normal file
10
nuxt4-app/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