Vercel Frontend
Deploy the Astro frontend from the astro/ folder to Vercel.
Steps
- Create/import Vercel project from this monorepo
- Set root directory to
astro/ - Add all Astro env variables from
astro/.env - Deploy
Expected outcome
Frontend pages load, auth routes work, and API requests target the configured backend base URL.
Common errors
| Error | Cause | Fix |
|---|---|---|
| Build fails | Missing env vars | Add all required vars in Vercel settings |
| Runtime API errors | Wrong base URL | Fix PUBLIC_API_BASE_URL |
| Auth redirect mismatch | Wrong Clerk URLs | Update public Clerk route env vars |