UI mejorada
This commit is contained in:
@@ -15,8 +15,8 @@ export default defineNuxtConfig({
|
||||
|
||||
// Server configuration for proxy compatibility
|
||||
devServer: {
|
||||
host: '0.0.0.0',
|
||||
port: 3000,
|
||||
host: process.env.NUXT_HOST || '0.0.0.0',
|
||||
port: process.env.NUXT_PORT ? Number(process.env.NUXT_PORT) : 3000,
|
||||
https: false
|
||||
},
|
||||
|
||||
@@ -26,13 +26,12 @@ export default defineNuxtConfig({
|
||||
// Vite configuration for HMR through proxy
|
||||
vite: {
|
||||
server: {
|
||||
hmr: {
|
||||
// Use proxy host instead of direct connection
|
||||
host: 'musica.nucleoriofrio.com',
|
||||
// Use default HTTPS port (443) through proxy
|
||||
clientPort: 443,
|
||||
protocol: 'wss'
|
||||
}
|
||||
// Configure HMR via env when developing behind HTTPS proxy
|
||||
hmr: process.env.NODE_ENV !== 'production' ? {
|
||||
host: process.env.HMR_HOST || undefined,
|
||||
clientPort: process.env.HMR_CLIENT_PORT ? Number(process.env.HMR_CLIENT_PORT) : undefined,
|
||||
protocol: process.env.HMR_PROTOCOL || undefined
|
||||
} : undefined
|
||||
}
|
||||
},
|
||||
|
||||
@@ -139,7 +138,7 @@ export default defineNuxtConfig({
|
||||
// Runtime configuration
|
||||
runtimeConfig: {
|
||||
public: {
|
||||
musicPath: '/music'
|
||||
musicPath: process.env.NUXT_PUBLIC_MUSIC_PATH || '/music'
|
||||
}
|
||||
},
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user