[READ-ONLY] Mirror of https://github.com/aaronateataco/SonicBridge. proxy for web radios sonicradio.vercel.app
0

Configure Feed

Select the types of activity you want to include in your feed.

Update vite.config.js

authored by

Aaronateataco and committed by
GitHub
(Jul 15, 2026, 5:48 PM UTC) b55422d5 f4ebc9a8

+21 -5
+21 -5
vite.config.js
··· 1 - import { defineConfig } from "vite"; 2 - import react from "@vitejs/plugin-react"; 1 + import { defineConfig } from 'vite' 2 + import react from '@vitejs/plugin-react' 3 3 4 + // https://vitejs.dev/config/ 4 5 export default defineConfig({ 5 6 plugins: [react()], 6 7 server: { 7 - port: 5173, 8 - }, 9 - }); 8 + proxy: { 9 + // Direct proxy: any request starting with /stations goes to backend 10 + '/stations': { 11 + target: 'http://127.0.0.1:5173', // Put your backend URL/port here (usually 5000 or 8000) 12 + changeOrigin: true, 13 + secure: false, 14 + }, 15 + // Alternative: If you want to proxy all endpoints starting with /api 16 + /* 17 + '/api': { 18 + target: 'http://127.0.0.1:5000', 19 + changeOrigin: true, 20 + rewrite: (path) => path.replace(/^\/api/, ''), // removes /api prefix before forwarding 21 + } 22 + */ 23 + } 24 + } 25 + })