21 lines
		
	
	
		
			410 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			410 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:5032',
 | 
						|
   },
 | 
						|
  },
 | 
						|
  
 | 
						|
  plugins: [react()],
 | 
						|
})
 |