Configure Vite for Cloudflare Tunnel with HMR support

This commit is contained in:
Exteban08
2026-01-08 02:41:42 +00:00
parent 0fc59bb134
commit 5da8c12ccd

View File

@@ -11,13 +11,16 @@ export default defineConfig({
tailwindcss(), tailwindcss(),
], ],
server: { server: {
host: true, host: '127.0.0.1',
port: 5173, port: 5173,
allowedHosts: [ allowedHosts: [
'localhost', 'localhost',
'sistema.gestionrecursoshidricos.com', 'sistema.gestionrecursoshidricos.com',
], ],
hmr: { hmr: {
protocol: 'wss',
host: 'sistema.gestionrecursoshidricos.com',
clientPort: 443,
overlay: true, overlay: true,
}, },
// proxy:{ // proxy:{