← back to Dw Boardroom V2

frontend/vite.config.ts

23 lines

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

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