ASR-FairBench / vite.config.js
satyamr196's picture
Migrated the frontend from Static HTML to Static React
ce8c232
raw
history blame contribute delete
440 Bytes
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
// https://vite.dev/config/
export default defineConfig({
base: "./",
plugins: [react()],
server: {
proxy: {
'/fetch': {
target: 'http://localhost:3000', // Your backend API
changeOrigin: true, // For virtual hosted sites
secure: false, // Set to false if using http
},
},
},
})