Files
pipecat/examples/twilio-chatbot/ws_test_client/vite.config.js
2025-06-14 21:07:15 -03:00

17 lines
467 B
JavaScript

import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react-swc';
export default defineConfig({
base: "./", //Use relative paths so it works at any mount path
plugins: [react()],
server: {
proxy: {
// Proxy /api requests to the backend server
'/ws': {
target: 'http://0.0.0.0:8765', // Replace with your backend URL
changeOrigin: true,
},
},
},
});