Deployment Overview
| App | Platform | URL |
|---|---|---|
| Publisher | Vercel | publisher.trendingsociety.com |
| Platform | Vercel | platform.trendingsociety.com |
| Agency | Vercel | agency.trendingsociety.com |
| Dashboard | Vercel | app.trendingsociety.com |
| MCP Gateway | Cloudflare Workers | mcp.trendingsociety.com |
| Docs | Mintlify | docs.trendingsociety.com |
| Database | Supabase | ymdccxqzmhxgbjbppywf.supabase.co |
Vercel Deployment
Initial Setup
-
Connect Repository
- Go to vercel.com
- Import the GitHub repository
- Select the monorepo
-
Configure Project
-
Environment Variables
Add in Vercel dashboard:
Automatic Deployments
- Production: Push to
mainbranch - Preview: Push to any other branch
Manual Deployment
Cloudflare Workers (MCP Gateway)
Initial Setup
-
Install Wrangler
-
Configure
wrangler.toml -
Deploy
Secrets Management
Supabase Database
Migrations
Edge Functions
Type Generation
Mintlify Docs
Setup
- Connect GitHub repo to Mintlify
- Configure
mint.jsoninapps/docs/ - Add custom domain:
docs.trendingsociety.com
Deployment
Automatic on push tomain branch.
Domain Configuration
Cloudflare DNS
All domains managed in Cloudflare:| Subdomain | Record Type | Target |
|---|---|---|
| @ | A | Vercel IP |
| www | CNAME | cname.vercel-dns.com |
| publisher | CNAME | cname.vercel-dns.com |
| platform | CNAME | cname.vercel-dns.com |
| agency | CNAME | cname.vercel-dns.com |
| app | CNAME | cname.vercel-dns.com |
| mcp | CNAME | workers.dev |
| docs | CNAME | mintlify.com |
SSL
- Cloudflare provides SSL for all subdomains
- Use “Full (strict)” SSL mode
- Enable HTTPS redirects
CI/CD Pipeline
GitHub Actions (Optional)
Deployment Checklist
Before deploying to production:All tests pass
TypeScript compiles without errors
Linting passes
Migrations applied to production database
Environment variables set in deployment platform
Types regenerated if schema changed
Documentation updated
Rollback
Vercel
- Go to Deployments tab
- Find previous working deployment
- Click ”…” → “Promote to Production”
Cloudflare Workers
Supabase
For database rollbacks, create and run a rollback migration:Monitoring
Vercel
- Analytics:
vercel.com/[team]/[project]/analytics - Logs:
vercel.com/[team]/[project]/logs
Cloudflare
- Analytics: Workers dashboard
- Logs:
wrangler tail
Supabase
- Database: Supabase dashboard → Database
- Edge Functions: Supabase dashboard → Edge Functions → Logs