16 lines
367 B
TypeScript
16 lines
367 B
TypeScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react-swc'
|
|
import tailwindcss from '@tailwindcss/vite'
|
|
|
|
export default defineConfig({
|
|
plugins: [react(), tailwindcss()],
|
|
server: {
|
|
host: '0.0.0.0',
|
|
port: 5173,
|
|
proxy: {
|
|
'/api': 'http://127.0.0.1:3001',
|
|
'/ws': { target: 'ws://127.0.0.1:3001', ws: true },
|
|
},
|
|
},
|
|
})
|