mirror of
https://github.com/escalante29/WealthySmart.git
synced 2026-07-17 13:48:47 +02:00
Unifies the transform pipeline on Oxc now that Rolldown does the bundling. Dev server boot 353ms -> 188ms; build parity (2.03s). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
28 lines
644 B
TypeScript
28 lines
644 B
TypeScript
import { defineConfig } from "vite";
|
|
import react from "@vitejs/plugin-react-oxc";
|
|
import tailwindcss from "@tailwindcss/vite";
|
|
import path from "path";
|
|
|
|
export default defineConfig({
|
|
plugins: [react(), tailwindcss()],
|
|
resolve: {
|
|
alias: {
|
|
"@": path.resolve(__dirname, "./src"),
|
|
},
|
|
},
|
|
server: {
|
|
proxy: {
|
|
// CopilotKit runtime (Hono server, dev only)
|
|
"/api/copilotkit": {
|
|
target: "http://localhost:3001",
|
|
changeOrigin: true,
|
|
},
|
|
// All other API calls → Python backend
|
|
"/api": {
|
|
target: "http://localhost:8001",
|
|
changeOrigin: true,
|
|
},
|
|
},
|
|
},
|
|
});
|