Vite + React 18 + TypeScript project with: - Tailwind CSS for styling (dark theme, trading-focused color palette) - React Router with 6 dashboard routes (Trading, Risk, ML, Performance, Backtest, Config) and keyboard shortcuts (T/R/M/P/B/C) - TanStack Query for data fetching with auto-refetch - Shared lib layer: typed API client, WebSocket manager with auto-reconnect and topic subscriptions, auth (JWT in localStorage) - React hooks: useAuth, useApi (query/mutation wrappers), useWebSocket - DashboardLayout with nav tabs and StatusBar (WS connection, auth status) - Stub pages with placeholder component layouts matching design doc Vite proxy configured to forward /api/* to gateway at localhost:3000. TypeScript passes with zero errors, production build succeeds. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
16 lines
313 B
TypeScript
16 lines
313 B
TypeScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
import tailwindcss from '@tailwindcss/vite'
|
|
|
|
export default defineConfig({
|
|
plugins: [react(), tailwindcss()],
|
|
server: {
|
|
proxy: {
|
|
'/api': {
|
|
target: 'http://localhost:3000',
|
|
ws: true,
|
|
},
|
|
},
|
|
},
|
|
})
|