21 lines
409 B
TypeScript
21 lines
409 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_API_URL: process.env.VITE_API_URL || 'http://localhost:5032',
|
|
},
|
|
},
|
|
|
|
plugins: [react()],
|
|
})
|