You deploy this part in the Vercel dashboard or CLI. API stays on your VPS — see deploy/vps/README.md.
- Frontend production build already verified locally (
cd frontend && npm run build). - Public API base known, e.g.
https://api.yourdomain.com(must exposeGET /api/health).
- Import https://github.com/CemAyyildiz/Quittance
- Root Directory:
frontend - Framework: Next.js (
frontend/vercel.json) - Production env vars:
| Variable | Value |
|---|---|
NEXT_PUBLIC_API_URL |
https://api.YOURDOMAIN.com/api |
NEXT_PUBLIC_STELLAR_NETWORK |
TESTNET |
NEXT_PUBLIC_HORIZON_URL |
https://horizon-testnet.stellar.org |
NEXT_PUBLIC_APP_URL |
https://YOUR-PROJECT.vercel.app (update after first deploy if needed) |
NEXT_PUBLIC_APP_NAME |
Quittance |
NEXT_PUBLIC_USE_MOCK |
false |
- Deploy → copy the production URL.
cd frontend
vercel login
vercel link # root = this frontend folder / monorepo rootDir frontend
vercel env add NEXT_PUBLIC_API_URL production
vercel env add NEXT_PUBLIC_STELLAR_NETWORK production # TESTNET
vercel env add NEXT_PUBLIC_HORIZON_URL production
vercel env add NEXT_PUBLIC_APP_URL production
vercel env add NEXT_PUBLIC_USE_MOCK production # false
vercel --prod- On VPS
.env, setFRONTEND_URLto the exact Vercel origin (no trailing slash). sudo systemctl restart quittance-api- From a browser on the Vercel site, confirm API calls succeed (Network tab).
- Smoke:
curl -sS https://api.YOURDOMAIN.com/api/health - Paste both URLs into
EVIDENCE.mdand GrantFox official links.
Checklist (copy/paste): wire-cors.md.