This repository now contains two tracks:
src/cv.tex.github/workflows/build.ymlweb/api/tailor.js.github/workflows/pages.ymlInstall frontend dependencies:
cd web
npm install
Configure API URL for the frontend:
cp .env.example .env.local
Run the frontend:
npm run dev
Deploy API to Vercel and set these environment variables there:
OPENROUTER_API_KEY (required)OPENROUTER_MODEL (optional, defaults to openai/gpt-4o-mini)In web/.env.local (for local) and GitHub repo variables (for Pages build):
VITE_API_BASE_URL (required)https://your-vercel-project.vercel.appThe app calls ${VITE_API_BASE_URL}/api/tailor.
The Pages workflow in .github/workflows/pages.yml builds web/ and deploys web/dist.
Set repository variable:
VITE_API_BASE_URL => your deployed Vercel base URL.