From 5da8c12ccd31fcae9623cfdbe5c415c02289f437 Mon Sep 17 00:00:00 2001 From: Exteban08 Date: Thu, 8 Jan 2026 02:41:42 +0000 Subject: [PATCH] Configure Vite for Cloudflare Tunnel with HMR support --- vite.config.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vite.config.ts b/vite.config.ts index 96dafb3..6209e42 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -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:{