21 lines
490 B
TypeScript
21 lines
490 B
TypeScript
import solid from "vite-plugin-solid";
|
|
import { defineConfig } from "vitest/config";
|
|
|
|
export default defineConfig({
|
|
plugins: [solid()],
|
|
server: {
|
|
port: 5173,
|
|
strictPort: true,
|
|
proxy: {
|
|
"/api": process.env.API_PROXY_TARGET ?? "http://localhost:8080",
|
|
"/health": process.env.API_PROXY_TARGET ?? "http://localhost:8080",
|
|
},
|
|
},
|
|
test: {
|
|
environment: "jsdom",
|
|
setupFiles: ["./src/test-setup.ts"],
|
|
clearMocks: true,
|
|
restoreMocks: true,
|
|
},
|
|
});
|