Agregar mejoras PWA y unificar workflow a 1 job
All checks were successful
build-and-deploy / build-and-deploy (push) Successful in 2m19s

- Agregar id único (/?app=whisper), launch_handler, handle_links y url_handlers
- Unificar workflow de 2 jobs (build + deploy) a 1 solo job
- Workaround para bug de Gitea que solo ejecuta el primer job
This commit is contained in:
2025-10-17 03:28:35 -06:00
parent 9fcaf754ca
commit d155c69f59
2 changed files with 17 additions and 19 deletions

View File

@@ -24,6 +24,7 @@ export default defineNuxtConfig({
registerType: 'autoUpdate',
includeAssets: ['favicon.ico', 'apple-touch-icon.png', 'icon.svg', 'offline.html'],
manifest: {
id: '/?app=whisper',
name: 'Nucleo Whisper',
short_name: 'Whisper',
description: 'Aplicación de transcripción de audio usando OpenAI Whisper',
@@ -34,8 +35,17 @@ export default defineNuxtConfig({
orientation: 'portrait',
scope: '/',
start_url: '/',
// Control de ventanas - mantener una sola ventana
launch_handler: {
client_mode: 'navigate-existing'
},
// Capturar enlaces dentro de la app
capture_links: 'existing-client-navigate',
// URL handling - nuevo estándar para manejar links a esta PWA
handle_links: 'preferred',
url_handlers: [
{ origin: 'https://whisper.nucleoriofrio.com' }
],
icons: [
{
src: '/icon-192x192.png',