Files
AITrader/vite.config.ts
T
henry 8429db504a feat: add stock indicators route and Alpaca account info
- New /stocks route with StockViewer component
- New /api/indicators endpoint with SMA, EMA, RSI, MACD
- New /api/alpaca/account endpoint
- AlpacaAccountInfo component on home page
- Indicator calculation utilities
- Tests for utilities and components
- Vite proxy config for /api
2026-05-12 21:07:18 +02:00

20 lines
411 B
TypeScript

import { reactRouter } from "@react-router/dev/vite";
import tailwindcss from "@tailwindcss/vite";
import { defineConfig } from "vite";
export default defineConfig({
plugins: [tailwindcss(), reactRouter()],
resolve: {
tsconfigPaths: true,
},
server: {
proxy: {
"/api": {
target: "http://127.0.0.1:3000",
changeOrigin: true,
secure: false,
},
},
},
});