* chore(orchestrator): add @infra import alias * feat(server): add error/http/context/logger/sanitize infrastructure * refactor(core): propagate request context, structured logs, and sanitization * test/docs: update API contract assertions and contributor standards * all pages working * normalizing
48 lines
1.1 KiB
TypeScript
48 lines
1.1 KiB
TypeScript
/// <reference types="vitest" />
|
|
|
|
import path from "node:path";
|
|
import tailwindcss from "@tailwindcss/vite";
|
|
import react from "@vitejs/plugin-react";
|
|
import { defineConfig } from "vite";
|
|
|
|
export default defineConfig({
|
|
plugins: [react(), tailwindcss()],
|
|
test: {
|
|
globals: true,
|
|
environment: "jsdom",
|
|
setupFiles: "./src/setupTests.ts",
|
|
include: [
|
|
"src/**/*.test.ts",
|
|
"src/**/*.test.tsx",
|
|
"../shared/src/**/*.test.ts",
|
|
],
|
|
exclude: ["node_modules/**", "dist/**"],
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
"@": path.resolve(__dirname, "./src"),
|
|
"@client": path.resolve(__dirname, "./src/client"),
|
|
"@server": path.resolve(__dirname, "./src/server"),
|
|
"@infra": path.resolve(__dirname, "./src/server/infra"),
|
|
"@shared": path.resolve(__dirname, "../shared/src"),
|
|
},
|
|
},
|
|
server: {
|
|
port: 5173,
|
|
proxy: {
|
|
"/api": {
|
|
target: "http://localhost:3001",
|
|
changeOrigin: true,
|
|
},
|
|
"/pdfs": {
|
|
target: "http://localhost:3001",
|
|
changeOrigin: true,
|
|
},
|
|
},
|
|
},
|
|
build: {
|
|
outDir: "dist/client",
|
|
emptyOutDir: true,
|
|
},
|
|
});
|