Files
MealQuest/web/vite.config.ts
T
dev_agentandClaude Opus 5.5 eb307f5ca2
Independent review Approved — 0 high findings (#3)
Feature 01 task 2: Vite React TypeScript web skeleton
Add web/ with React 19, TypeScript, Vite, React Router 7 and TanStack
Query 5. Scripts: dev, build (tsc --noEmit + vite build), preview,
typecheck and test (Vitest run, jsdom, Testing Library). The dev server
proxies /api, /auth and /media to http://localhost:8080. App renders a
placeholder "MealQuest" shell covered by a smoke test. package-lock.json
is committed; node_modules and dist stay ignored.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-02 22:22:41 -04:00

20 lines
374 B
TypeScript

import { defineConfig } from 'vitest/config'
import react from '@vitejs/plugin-react'
const backend = 'http://localhost:8080'
export default defineConfig({
plugins: [react()],
server: {
proxy: {
'/api': backend,
'/auth': backend,
'/media': backend,
},
},
test: {
environment: 'jsdom',
setupFiles: ['./src/test/setup.ts'],
},
})