Files
forkmessager/apps/web/vite.config.ts
2026-03-12 01:48:58 +03:00

26 lines
554 B
TypeScript

import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
import tailwindcss from '@tailwindcss/vite';
export default defineConfig({
plugins: [react(), tailwindcss()],
server: {
port: 5173,
proxy: {
'/api': {
target: 'http://localhost:5059',
changeOrigin: true,
},
'/uploads': {
target: 'http://localhost:5059',
changeOrigin: true,
},
'/hubs': {
target: 'http://localhost:5059',
ws: true,
changeOrigin: true,
},
},
},
});