← back to Dw Boardroom Governance

frontend/vite.config.ts

19 lines

import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';

export default defineConfig({
  plugins: [react()],
  server: {
    port: 4030,
    host: '0.0.0.0',
    proxy: {
      '/api': 'http://localhost:4020',
      '/ws': { target: 'ws://localhost:4020', ws: true }
    }
  },
  preview: {
    port: 4030,
    host: '0.0.0.0'
  }
});