Files
relay/client/vite.config.ts
2024-11-21 17:12:11 +01:00

24 lines
487 B
TypeScript

import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
// https://vitejs.dev/config/
export default defineConfig({
server: {
proxy: {
'/api': {
target: 'http://localhost:3000',
changeOrigin: true,
},
'/socket.io': {
target: 'ws://localhost:3000',
ws: true,
},
'/attachments': {
target: 'http://localhost:3000',
changeOrigin: true,
},
},
},
plugins: [react()],
});