fix: Corregir versiones de npm y imports ESM de Baileys
Some checks failed
Build and Deploy / build-and-deploy (push) Failing after 3m7s

- Downgrade a Nuxt 3.14.0 (Nuxt 4 no existe todavía)
- Downgrade @nuxt/ui a ^3.0.0
- Downgrade Baileys a ^6.7.9 (versión estable)
- Corregir imports ESM de Baileys en auth-state.ts y manager.ts
- Remover compatibilityDate (específico de Nuxt 4)
This commit is contained in:
2025-12-02 18:04:07 -06:00
parent faedec47d7
commit e0f844e5dc
4 changed files with 22 additions and 44 deletions

View File

@@ -1,15 +1,13 @@
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
ssr: true,
compatibilityDate: '2025-07-15',
devtools: { enabled: true },
css: ['~/assets/css/main.css'],
modules: ['@nuxt/image', '@nuxt/ui', '@vite-pwa/nuxt'],
// Performance optimizations
experimental: {
payloadExtraction: false,
viewTransition: true
payloadExtraction: false
},
// Vite config
@@ -23,21 +21,10 @@ export default defineNuxtConfig({
'.nucleoriofrio.com',
'whatsapp.nucleoriofrio.com'
]
},
build: {
cssCodeSplit: true,
rollupOptions: {
output: {
manualChunks: {
'vendor-ui': ['@nuxt/ui']
}
}
}
}
},
app: {
baseURL: process.env.BASE_URL || '/',
head: {
title: 'WhatsApp Nucleo',
link: [
@@ -55,7 +42,6 @@ export default defineNuxtConfig({
},
nitro: {
baseURL: process.env.BASE_URL || '/',
experimental: {
openAPI: true
},
@@ -89,29 +75,18 @@ export default defineNuxtConfig({
display: 'standalone',
background_color: '#075e54',
theme_color: '#075e54',
launch_handler: {
client_mode: 'navigate-existing'
},
icons: [
{ src: '/icons/icon-192.png', sizes: '192x192', type: 'image/png' },
{ src: '/icons/icon-512.png', sizes: '512x512', type: 'image/png' },
{ src: '/icons/icon-192-maskable.png', sizes: '192x192', type: 'image/png', purpose: 'maskable' },
{ src: '/icons/icon-512-maskable.png', sizes: '512x512', type: 'image/png', purpose: 'maskable' }
{ src: '/icons/icon-512.png', sizes: '512x512', type: 'image/png' }
]
},
workbox: {
globPatterns: ['**/*.{js,css,html,png,svg,webp,ico,json,woff2}'],
navigateFallback: undefined,
cleanupOutdatedCaches: true,
maximumFileSizeToCacheInBytes: 4 * 1024 * 1024
},
client: {
installPrompt: true,
periodicSyncForUpdates: 3600
cleanupOutdatedCaches: true
},
devOptions: {
enabled: process.env.NODE_ENV === 'development',
type: 'module'
enabled: false
}
},