From 8bb4942caf3d45327a035c20bc0e80c0819e51e7 Mon Sep 17 00:00:00 2001 From: Esteban Date: Wed, 7 Jan 2026 00:49:37 -0600 Subject: [PATCH] vite config fix --- vite.config.ts | 35 ++++++++++++++++++++++++----------- 1 file changed, 24 insertions(+), 11 deletions(-) diff --git a/vite.config.ts b/vite.config.ts index 3ffb65d..b29be24 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,18 +1,31 @@ import { defineConfig } from "vite"; import react from "@vitejs/plugin-react"; -import tailwindcss from "@tailwindcss/vite"; -// https://vitejs.dev/config/ +// https://vite.dev/config/ export default defineConfig({ - plugins: [react(), tailwindcss()], - + plugins: [ + react({ + jsxRuntime: 'automatic', + }) + ], server: { - allowedHosts: [ - "localhost", - "127.0.0.1", - "reyna-compressive-shaunna.ngrok-free.dev", - "https://sistema.gestionrecursoshidricos.com/" - ], + host: true, port: 5173, + allowedHosts: [ + 'sistema.gestionrecursoshidricos.com' + ], + hmr: { + overlay: true, + }, + // proxy:{ + // '/api':{ + // target: 'http://localhost:4000/', + // changeOrigin : true, + // secure: false, + // } + // } }, -}); + optimizeDeps: { + include: ['react', 'react-dom', 'react-router-dom'], + }, +}) \ No newline at end of file