Independent review Approved — 0 high findings (#3)
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>
20 lines
374 B
TypeScript
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'],
|
|
},
|
|
})
|