From 215b197572090fc86882ea5a781848217cd86273 Mon Sep 17 00:00:00 2001 From: Exteban08 Date: Thu, 8 Jan 2026 02:06:32 +0000 Subject: [PATCH] Vite config changes --- vite.config.ts | 35 ++++++++++++++++++++++++++--------- 1 file changed, 26 insertions(+), 9 deletions(-) diff --git a/vite.config.ts b/vite.config.ts index ef01ba3..96dafb3 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -2,16 +2,33 @@ 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', + }), + tailwindcss(), + ], server: { - allowedHosts: [ - "localhost", - "127.0.0.1", - "reyna-compressive-shaunna.ngrok-free.dev", - ], + host: true, port: 5173, + allowedHosts: [ + 'localhost', + '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