web_based_rag / frontend /vite.config.ts
yuvrajsingh6
feat: RAG system with OCR for Hugging Face Spaces
4d592a4
raw
history blame contribute delete
387 Bytes
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import path from 'path'
export default defineConfig({
plugins: [react()],
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
},
},
server: {
port: 5173,
proxy: {
'/api': {
target: 'http://localhost:8000',
changeOrigin: true,
},
},
},
})