entorno de desarrollo listo

This commit is contained in:
2025-10-05 15:56:42 -06:00
parent 4a1f153417
commit 0380f69f1b
7 changed files with 165 additions and 14 deletions

View File

@@ -17,6 +17,17 @@ export default defineNuxtConfig({
// Optimize build
vite: {
plugins: [disableImportProtection()],
server: {
hmr: {
clientPort: 443,
protocol: 'wss'
},
allowedHosts: [
'.nucleoriofrio.com',
'devserver.nucleoriofrio.com',
'analitica.nucleoriofrio.com'
]
},
build: {
cssCodeSplit: true,
rollupOptions: {
@@ -30,11 +41,12 @@ export default defineNuxtConfig({
}
},
app: {
baseURL: process.env.BASE_URL || '/',
head: {
link: [
{ rel: 'icon', type: 'image/png', href: '/icons/icon-192.png' },
{ rel: 'apple-touch-icon', sizes: '192x192', href: '/icons/icon-192.png' },
{ rel: 'manifest', href: '/manifest.webmanifest' }
{ rel: 'icon', type: 'image/png', href: `${process.env.BASE_URL || ''}/icons/icon-192.png` },
{ rel: 'apple-touch-icon', sizes: '192x192', href: `${process.env.BASE_URL || ''}/icons/icon-192.png` },
{ rel: 'manifest', href: `${process.env.BASE_URL || ''}/manifest.webmanifest` }
],
meta: [
{ name: 'theme-color', content: '#1b1209' },
@@ -45,18 +57,15 @@ export default defineNuxtConfig({
}
},
nitro: {
baseURL: process.env.BASE_URL || '/',
experimental: {
openAPI: true
},
routeRules: {
'/**': {
headers: {
'Cross-Origin-Embedder-Policy': 'require-corp',
'Cross-Origin-Opener-Policy': 'same-origin'
}
},
'/manifest.webmanifest': {
headers: {
'Access-Control-Allow-Origin': '*',
'Access-Control-Allow-Methods': 'GET',
'Content-Type': 'application/manifest+json'
'Content-Type': 'application/manifest+json',
'Cache-Control': 'public, max-age=3600'
}
},
'/sw.js': {
@@ -76,8 +85,8 @@ export default defineNuxtConfig({
name: 'Analítica Núcleo Data Studio',
short_name: 'Analítica',
description: 'Explora y valida tus tablas Supabase desde un único panel en modo lectura.',
start_url: '/',
scope: '/',
start_url: process.env.BASE_URL || '/',
scope: process.env.BASE_URL || '/',
display: 'standalone',
background_color: '#1b1209',
theme_color: '#c08040',