mirror of
https://github.com/Tomato6966/investment-portfolio-simulator.git
synced 2025-04-08 00:00:35 +02:00
24 lines
539 B
TypeScript
24 lines
539 B
TypeScript
import { defineConfig } from "vite";
|
|
|
|
import react from "@vitejs/plugin-react";
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
optimizeDeps: {
|
|
exclude: ['lucide-react'],
|
|
},
|
|
server: {
|
|
proxy: {
|
|
'/yahoo': {
|
|
target: 'https://query1.finance.yahoo.com',
|
|
changeOrigin: true,
|
|
rewrite: (path) => path.replace(/^\/yahoo/, ''),
|
|
headers: {
|
|
'Origin': 'https://finance.yahoo.com'
|
|
}
|
|
}
|
|
}
|
|
},
|
|
base: process.env.VITE_BASE_URL || '/',
|
|
});
|