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(),
],
server: {
host: true,
host: '127.0.0.1',
port: 5173,
allowedHosts: [
'localhost',
'sistema.gestionrecursoshidricos.com',
],
hmr: {
protocol: 'wss',
host: 'sistema.gestionrecursoshidricos.com',
clientPort: 443,
overlay: true,
},
// proxy:{