Files
EventHubFrontAdmin/vite.config.ts
T

21 lines
541 B
TypeScript

import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
export default defineConfig({
plugins: [react()],
server: {
proxy: {
'/v1': {
target: 'https://admin-api.eventhub.local',
changeOrigin: true,
secure: false,
},
'/admin/ws': {
target: 'wss://admin-ws.eventhub.local',
ws: true,
changeOrigin: true,
secure: false,
},
},
},
});