The repo auto-detects your deployment preference:
| If you⦠| Then⦠|
|---|---|
Add OPENAI_API_KEY secret to GitHub |
β GitHub Pages deploys automatically |
| Donβt add the secret | β Workflow skips, use Vercel instead |
Best for: Free hosting, fully automatic
OPENAI_API_KEYgh-pages branchThatβs it! Every push to main will:
# Update CNAME file with your domain
echo "agents.yourdomain.com" > CNAME
git add CNAME && git commit -m "Set custom domain" && git push
Then add DNS: CNAME record pointing to [username].github.io
Best for: CORS control, analytics, rate limiting
bun run build |
| Output Directory | public |OPENAI_API_KEYThe included vercel.json has sensible defaults for CORS and caching.
| Feature | GitHub Pages | Vercel |
|---|---|---|
| Cost | Free | Free tier |
| Setup | Add 1 secret | Import + configure |
| CORS Control | β | β |
| Analytics | β | β |
| Custom Domain | β | β |
| Auto-deploy | β | β |
Q: What if I donβt add the OpenAI secret? A: The GitHub Action will skip gracefully and show instructions for Vercel.
Q: Can I use both? A: Yes, but theyβll serve the same content. Pick one.
Q: How do I switch from GitHub Pages to Vercel? A: Just import to Vercel. Optionally remove the secret from GitHub to stop those builds.
Q: Whatβs the OPENAI_API_KEY for? A: Translating your agents to 18 languages automatically.