Sets up the frontend SPA foundation: Vite+React+TS project at frontend/, configures Tailwind CSS v4 via @tailwindcss/vite, dev proxy to port 4000, and implements the API client (JWT auth, auto-redirect on 401). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
9 lines
266 B
TypeScript
9 lines
266 B
TypeScript
import { defineConfig } from 'vite';
|
|
import react from '@vitejs/plugin-react';
|
|
import tailwindcss from '@tailwindcss/vite';
|
|
|
|
export default defineConfig({
|
|
plugins: [react(), tailwindcss()],
|
|
server: { port: 3000, proxy: { '/api': 'http://localhost:4000' } },
|
|
});
|