Rien ne permettait de vérifier quelle version du front était réellement servie : un déploiement non appliqué était indiscernable d'un déploiement réussi, d'autant que le cache navigateur masque le problème. La CI injecte désormais le SHA du commit au build, écrit dans dist/version.json et servi par nginx. Le pendant côté API est le champ "build" de GET /health.
React + Vite
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Oxc
- @vitejs/plugin-react-swc uses SWC
React Compiler
The React Compiler is enabled on this template. See this documentation for more information.
Note: This will impact Vite dev & build performances.
Expanding the ESLint configuration
If you are developing a production application, we recommend using TypeScript with type-aware lint rules enabled. Check out the TS template for information on how to integrate TypeScript and typescript-eslint in your project.