66d0624279
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
32 lines
702 B
TypeScript
32 lines
702 B
TypeScript
/// <reference types="vitest/config" />
|
|
import tailwindcss from "@tailwindcss/vite";
|
|
import react from "@vitejs/plugin-react";
|
|
import path from "node:path";
|
|
import { defineConfig } from "vite";
|
|
|
|
export default defineConfig({
|
|
plugins: [react(), tailwindcss()],
|
|
resolve: {
|
|
alias: {
|
|
"@": path.resolve(__dirname, "./src"),
|
|
},
|
|
},
|
|
server: {
|
|
proxy: {
|
|
"/api": "http://localhost:8080",
|
|
"/api-docs": "http://localhost:8080",
|
|
"/health": "http://localhost:8080",
|
|
},
|
|
},
|
|
test: {
|
|
environment: "jsdom",
|
|
globals: true,
|
|
setupFiles: ["./src/test/setup.ts"],
|
|
environmentOptions: {
|
|
jsdom: {
|
|
url: "http://localhost",
|
|
},
|
|
},
|
|
},
|
|
});
|