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 Babel (or oxc when used in rolldown-vite) for Fast Refresh
- @vitejs/plugin-react-swc uses SWC for Fast Refresh
The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see this documentation.
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.
The admin tool now includes a simple frontend login gate.
- Session is stored in
sessionStorage(browser tab session only). - Default credentials are
admin/admin. - You can override them using Vite environment variables:
VITE_ADMIN_TOOL_USER=your_user
VITE_ADMIN_TOOL_PASSWORD=your_passwordCreate a .env file at project root (ld_admintool_frontend/.env) with these values for local development.
Important: this is a convenience login at UI level. For real protection in production, add server-side auth (for example reverse-proxy basic auth or backend authentication).