@echo off
cd /d "%~dp0frontend"
echo ====================================
echo   LEADS - FRONTEND (Vite)  puerto 5174
echo   Carpeta: %CD%
echo ====================================
if not exist "node_modules\.bin\vite.cmd" call npm install
echo Iniciando servidor de desarrollo...
call npm run dev
echo.
echo (npm run dev termino o fallo.)
pause
