import { defineConfig } from 'vite'; import react from '@vitejs/plugin-react'; export default defineConfig({ plugins: [react()], base: '/bitacoras/', server: { host: true, port: 5173, strictPort: true, cors: true, allowedHosts: ['ns8.frlr.utn.edu.ar', 'localhost', 'srv-ns8', 'srv-ns8.tail.dasuten', 'srv-ns8.tail.rmonla', '100.111.195.4'], proxy: { '/bitacoras/api': { target: 'http://api:3001', changeOrigin: true, rewrite: (path: string) => path.replace(/^\/bitacoras\/api/, '/api') } } }, define: { 'import.meta.env.VERSION': JSON.stringify('1.0.0') } });