Files
pipecat/examples/aws-agentcore/server/client/vite.config.js
2025-11-28 15:58:51 -03:00

18 lines
496 B
JavaScript

/* jshint esversion: 6 */
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react-swc';
export default defineConfig({
plugins: [react()],
server: {
allowedHosts: true, // Allows external connections like ngrok
proxy: {
// Proxy /api requests to the backend server
'/v1': {
target: 'http://0.0.0.0:8000', // Replace with your backend URL
changeOrigin: true,
},
},
},
});