Files
life-echo/app-eval-web/vite.config.ts

24 lines
548 B
TypeScript
Raw Normal View History

import react from "@vitejs/plugin-react";
import { defineConfig } from "vitest/config";
/**
* VITE_EVAL_API_BASE /internal/... Vite 8001
* CORS 404
*/
export default defineConfig({
plugins: [react()],
server: {
port: 5174,
proxy: {
"/internal": {
target: "http://127.0.0.1:8001",
changeOrigin: true,
},
},
},
test: {
environment: "node",
include: ["src/**/*.test.ts"],
},
});