Update project files

This commit is contained in:
2026-07-13 16:10:01 -04:00
parent a6e66e6a89
commit e160a0901c
29 changed files with 3583 additions and 2898 deletions
+5 -6
View File
@@ -1,11 +1,13 @@
import tailwindcss from '@tailwindcss/vite';
import react from '@vitejs/plugin-react';
import path from 'path';
import {defineConfig} from 'vite';
import { defineConfig, loadEnv } from 'vite';
export default defineConfig(({ mode }) => {
const env = loadEnv(mode, process.cwd(), '');
export default defineConfig(() => {
return {
base: "/cruce-cuentas/",
base: '/cruce-cuentas/',
plugins: [react(), tailwindcss()],
resolve: {
alias: {
@@ -13,10 +15,7 @@ export default defineConfig(() => {
},
},
server: {
// HMR is disabled in AI Studio via DISABLE_HMR env var.
// Do not modify—file watching is disabled to prevent flickering during agent edits.
hmr: process.env.DISABLE_HMR !== 'true',
// Disable file watching when DISABLE_HMR is true to save CPU during agent edits.
watch: process.env.DISABLE_HMR === 'true' ? null : {},
},
};