Request flow
Browser -> Next.js page/app router -> POST /api/jobs -> Hugging Face Space (server-side only) or mock scorer -> Normalized JSON + downloadable CSV
The main web product is now the Next.js app in apps/web. Vercel deploys that app, and the browser only communicates with internal route handlers. Hugging Face access stays on the server side.
Browser -> Next.js page/app router -> POST /api/jobs -> Hugging Face Space (server-side only) or mock scorer -> Normalized JSON + downloadable CSV
INFERENCE_BACKEND=mock | hf_space HF_SPACE_ID=Pattarabordee/pea-ne1-meter-detection HF_API_NAME=/predict HF_AUTH_TOKEN= HF_USE_AUTH=false ENABLE_MOCK_FALLBACK=true