This template should help get you started developing with Vue 3 in Vite.
VS Code + Vue (Official) (and disable Vetur).
- Chromium-based browsers (Chrome, Edge, Brave, etc.):
- Firefox:
TypeScript cannot handle type information for .vue imports by default, so we replace the tsc CLI with vue-tsc for type checking. In editors, we need Volar to make the TypeScript language service aware of .vue types.
See Vite Configuration Reference.
npm installEste proyecto usa Vite, por lo que las variables deben iniciar con VITE_.
- Local: crea/edita
.env.local(no se versiona). - Producción (Netlify): define las variables en el panel de Netlify (no se guardan en el repo).
Variables requeridas:
VITE_APP_NAMEVITE_API_BASE_URLVITE_BO_ROUTE_PREFIXVITE_AUTH_MODE
npm run devnpm run buildLint with ESLint
npm run lint