marco.pms.web/vite.config.ts
2025-03-28 16:46:41 +05:30

21 lines
411 B
TypeScript

import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
// https://vite.dev/config/
export default defineConfig({
server: {
host: '0.0.0.0',
port: 5173, // or whatever port you prefer
watch: {
usePolling:true
}
},
define: {
'process.env': {
VITE_BASE_URL: process.env.VITE_BASE_URL || 'http://localhost:8080',
},
},
plugins: [react()],
})