Files
Mauricio Barragan 2e8744ccf0 Initial commit: Arb Pulse monolith with CI and optional Fly deploy.
Real-time BTC cross-exchange arbitrage detection (Kraken, Bybit, OKX, Binance)
with React dashboard, GitHub Actions CI, and documented Fly.io deploy workflow.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-08 21:04:53 -06:00

23 lines
546 B
TypeScript

import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
// Dev server proxies API + SSE to the Node backend on :8080.
// In production the backend serves web/dist directly (same origin), so the
// relative /api paths used by the client work without any proxy.
export default defineConfig({
plugins: [react()],
server: {
port: 5173,
proxy: {
"/api": {
target: "http://localhost:8080",
changeOrigin: true,
},
},
},
build: {
outDir: "dist",
emptyOutDir: true,
},
});