17 lines
413 B
TypeScript
17 lines
413 B
TypeScript
import { defineConfig } from "vite";
|
|
import react from "@vitejs/plugin-react";
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
server: {
|
|
proxy: {
|
|
"/api": {
|
|
target: process.env.WQ_DEV_API ?? "http://127.0.0.1:8000",
|
|
// Match production proxy behavior so MCP validates the public Host.
|
|
changeOrigin: false,
|
|
},
|
|
},
|
|
},
|
|
build: { chunkSizeWarningLimit: 1500 },
|
|
});
|