gs-port / vite.config.js
Scribbler310
feat: portfolio dashboard v1.0
dbc70ee
raw
history blame contribute delete
367 Bytes
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
// https://vite.dev/config/
export default defineConfig({
plugins: [react()],
server: {
proxy: {
'/api/yahoo': {
target: 'https://query1.finance.yahoo.com',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api\/yahoo/, '')
}
}
}
})