Files
Messenger/web/vite.config.ts
T

21 lines
459 B
TypeScript
Raw Normal View History

2026-09-27 19:53:10 +03:00
import tailwindcss from '@tailwindcss/vite'
import react from '@vitejs/plugin-react'
import { defineConfig } from 'vite'
// https://vite.dev/config/
export default defineConfig({
2026-09-27 19:53:10 +03:00
plugins: [react(), tailwindcss()],
server: {
proxy: {
'/api': {
target: 'http://localhost:8080',
changeOrigin: true,
},
2026-09-27 19:53:10 +03:00
'/ws': {
target: 'ws://localhost:8080',
ws: true,
changeOrigin: true,
},
},
},
})