Client for smallwebrtc

This commit is contained in:
Filipi Fuchter
2025-11-28 15:58:51 -03:00
parent a3d3e3136c
commit ed17aab7dc
10 changed files with 1071 additions and 29 deletions

View 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,
},
},
},
});