9de0132676
Package web/ : React 19 + Vite 8 + Tailwind 4 + react-router 7 + PWA. Tokens dark HUD Jarvis-red, client API, contexte auth JWT, shell + garde de route, écran Login (mot de passe + TOTP). Chat/Review en stubs. Build OK, 0 vuln. docs/ui-design.md. Palier de risque : reversible (front statique, aucun accès infra direct). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
32 lines
858 B
TypeScript
32 lines
858 B
TypeScript
import { defineConfig } from "vite";
|
|
import react from "@vitejs/plugin-react";
|
|
import tailwindcss from "@tailwindcss/vite";
|
|
import { VitePWA } from "vite-plugin-pwa";
|
|
|
|
// Le SPA est servi same-origin par le backend en prod (build → web/dist).
|
|
// En dev, proxy /api et /health vers le backend (port 8080).
|
|
export default defineConfig({
|
|
plugins: [
|
|
react(),
|
|
tailwindcss(),
|
|
VitePWA({
|
|
registerType: "autoUpdate",
|
|
manifest: {
|
|
name: "CHLOVA",
|
|
short_name: "CHLOVA",
|
|
theme_color: "#020617",
|
|
background_color: "#020617",
|
|
display: "standalone",
|
|
icons: [],
|
|
},
|
|
}),
|
|
],
|
|
server: {
|
|
proxy: {
|
|
"/api": { target: "http://localhost:8080", changeOrigin: true },
|
|
"/health": { target: "http://localhost:8080", changeOrigin: true },
|
|
},
|
|
},
|
|
build: { outDir: "dist" },
|
|
});
|