18 lines
474 B
TypeScript
18 lines
474 B
TypeScript
import react from "@vitejs/plugin-react";
|
|
import { defineConfig } from "vitest/config";
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
test: {
|
|
setupFiles: ["./tests/setup.ts"]
|
|
},
|
|
server: {
|
|
port: 5173,
|
|
proxy: {
|
|
// Preserve the page Host so the backend can verify Origin for CMS login.
|
|
"/api": { target: "http://127.0.0.1:3001", changeOrigin: false },
|
|
"/health": { target: "http://127.0.0.1:3001", changeOrigin: false }
|
|
}
|
|
}
|
|
});
|