Client for smallwebrtc
This commit is contained in:
17
examples/aws-agentcore/server/client/vite.config.js
Normal file
17
examples/aws-agentcore/server/client/vite.config.js
Normal file
@@ -0,0 +1,17 @@
|
||||
/* 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,
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user