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 currently not compatible with SWC. See this issue for tracking the progress.
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.
El asistente de la web y de la app Android es la función de Netlify netlify/functions/chat.js, que llama a Gemini. En Netlify
(Site configuration → Environment variables) hacen falta GEMINI_API_KEY (la clave de Google AI Studio; solo vive ahí) y, si se quiere,
GEMINI_MODEL para cambiar de modelo sin tocar el código (por defecto, gemini-3.5-flash-lite). La app manda el idioma elegido en lang
(es, ca-ES-valencia, en, fr) y el asistente contesta en él. pnpm test prueba la función con un Gemini simulado y
node scripts/probar-chat.js la prueba con el real.