@echo off
rem One-click local test environment for the Bigscreen site.
rem Rebuilds the static pages from src/site/, then starts the dev server
rem with the built-in mock API (no keys needed). See LOCAL-TESTING.md.
cd /d "%~dp0"
echo === Building static pages ===
node scripts\build-pages.mjs
if errorlevel 1 (
  echo Page build failed. Is Node installed and "npm install" done?
  pause
  exit /b 1
)
echo.
echo === Starting dev server on http://localhost:3000 ===
echo    Site:          http://localhost:3000/en
echo    Account login: http://localhost:3000/account/login
echo    Demo account:  demo@bigscreenvr.com / beyond2
echo.
call npx next dev
pause
