This document describes the Vercel production deployment setup for SkillGraph, recorded on 2026-10-05.
- Web application: https://skillgraph-exp.vercel.app (alias: https://skillgraph-notionatul.vercel.app)
- API service: https://skillgraph-api-notionatul.vercel.app (alias: https://skillgraph-api-three.vercel.app)
The web client sends all requests to its own origin under /api/*. frontend/vercel.json rewrites these paths to the API production domain.
- Project Name:
skillgraph-api - Root Directory:
.(repo root) - Framework Preset: FastAPI
- Runtime: Python 3.12 (specified in
.python-version) - Entrypoint:
app.py(from api.main import app) - Install Command:
pip install -r requirements.txt - Excluded Files: defined in
vercel.jsonfunctions block to keep bundle size small and preserveartifacts/*.jsonandtaxonomy/ - Git Connection:
https://github.com/AtulACleaver/SkillGraph(production branch:main)
- Project Name:
skillgraph - Root Directory:
frontend - Framework Preset: Vite
- Build Command:
npm run build - Output Directory:
dist - Install Command:
npm install - Rewrites:
frontend/vercel.jsonrewrites/api/:path*tohttps://skillgraph-api-notionatul.vercel.app/api/:path* - Git Connection:
https://github.com/AtulACleaver/SkillGraph(production branch:main)
Benchmarked /api/analyze using the payload:
{"skills": ["python", "sql", "pandas"], "desired_role": "Data / BI Analyst"}
- Cold start (initial invocation after fresh deployment): 2521.1 ms (2.52 s)
- Warm sequential calls (20 requests through web domain rewrite):
- p50: 454.4 ms
- p95: 728.8 ms
- Min: 361.7 ms
- Max: 1023.1 ms
- Mean: 491.0 ms
Recorded from command:
for i in $(seq 1 20); do
curl -w "%{time_total}\n" -o /dev/null -s -X POST "https://skillgraph-exp.vercel.app/api/analyze" \
-H "Content-Type: application/json" \
-d '{"skills":["python","sql","pandas"],"desired_role":"Data / BI Analyst"}'
doneALLOWED_ORIGINS: Comma-separated list of origins allowed by CORS. Only matters for local development or cross-origin access. Not required in production because the web client uses same-origin/apirewrites.PORT: Set automatically by Vercel serverless environment.
Run rollback inside the respective directory:
# Roll back API
vercel rollback <deployment-url>
# Roll back web frontend
cd frontend && vercel rollback <deployment-url>- Open the project dashboard on Vercel:
- API:
https://vercel.com/notionatul/skillgraph-api - Web:
https://vercel.com/notionatul/skillgraph
- API:
- Open the Deployments tab.
- Select the previous stable deployment.
- Click the three dots icon (
...) on the right. - Select Promote to Production.
Both projects connect to https://github.com/AtulACleaver/SkillGraph. Merges or pushes to main trigger production deployments automatically. Pull requests receive isolated preview deployments with unique preview URLs.
To deploy directly from the CLI:
# Redeploy API
vercel deploy --prod
# Redeploy web frontend
cd frontend && vercel deploy --prod