apps/web becomes a Vite + React application: React Router with home and 404 routes, base layout (top bar, collapsible sidebar remembered per user via localStorage, main area), CSS design tokens including the three font slots from ADR 0016, TanStack Query, and a typed fetch helper showing live API health on the home page. All UI strings go through a t() stub that issue #5 replaces with i18next. The Vite dev server proxies /api to the api dev port (3001). Closes #4 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
14 lines
355 B
TypeScript
14 lines
355 B
TypeScript
import react from '@vitejs/plugin-react';
|
|
import { defineConfig } from 'vite';
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
server: {
|
|
// The api dev server runs on 3001 (3000 may be occupied by other
|
|
// projects on developer machines); see compose.dev.yml usage notes.
|
|
proxy: {
|
|
'/api': 'http://localhost:3001',
|
|
},
|
|
},
|
|
});
|