feat: initial Vite/React frontend service template

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
nholtware 2026-11-05 02:27:23 -06:00
commit 9fd6fd1d26
32 changed files with 5218 additions and 0 deletions

19
vite.config.ts Normal file
View file

@ -0,0 +1,19 @@
import react from "@vitejs/plugin-react";
import { defineConfig } from "vitest/config";
export default defineConfig({
plugins: [react()],
server: {
// Local dev: proxy /api to a backend (e.g. the service-template-express dev server).
proxy: {
"/api": {
target: process.env.API_PROXY_TARGET ?? "http://localhost:3000",
rewrite: (p) => p.replace(/^\/api/, ""),
},
},
},
test: {
environment: "jsdom",
setupFiles: ["./src/test-setup.ts"],
},
});