Vite config changes

This commit is contained in:
Exteban08
2026-01-08 02:06:32 +00:00
parent 53989714c6
commit 215b197572

View File

@@ -2,16 +2,33 @@ import { defineConfig } from "vite";
import react from "@vitejs/plugin-react"; import react from "@vitejs/plugin-react";
import tailwindcss from "@tailwindcss/vite"; import tailwindcss from "@tailwindcss/vite";
// https://vitejs.dev/config/ // https://vite.dev/config/
export default defineConfig({ export default defineConfig({
plugins: [react(), tailwindcss()], plugins: [
react({
server: { jsxRuntime: 'automatic',
allowedHosts: [ }),
"localhost", tailwindcss(),
"127.0.0.1",
"reyna-compressive-shaunna.ngrok-free.dev",
], ],
server: {
host: true,
port: 5173, 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'],
},
})