๐ Deployment
Production Deployment
Deploy your agent infrastructure to production with Vercel, Supabase, and enterprise-grade monitoring.
Infrastructure Stack
โฒ
Vercel
Edge Runtime
โก
Supabase
PostgreSQL
๐ด
Redis
Rate Limiting
๐ณ
Stripe
Payments
โ๏ธ
Step 1
Environment Setup
- Database URL (Supabase PostgreSQL)
- Stripe API keys (publishable + secret)
- Redis connection string for rate limiting
- Sentry DSN for error monitoring
- MNNR API keys for agent services
Configuration
# .env.production
DATABASE_URL="postgresql://..."
STRIPE_SECRET_KEY="sk_test_..."
STRIPE_PUBLISHABLE_KEY="pk_test_..."
REDIS_URL="redis://..."
SENTRY_DSN="https://..."
MNNR_API_KEY="mnnr_test_..."๐๏ธ
Step 2
Database Migration
- Create Supabase project
- Run schema migrations
- Configure Row Level Security (RLS)
- Set up agent_identities table
- Create transaction indexes
Configuration
# Run migrations
npx prisma migrate deploy
# Seed agent economy tables
npx prisma db seed
# Verify RLS policies
supabase db diff --linked๐
Step 3
Vercel Deployment
- Connect GitHub repository
- Configure build settings (Next.js)
- Set environment variables
- Configure custom domain (mnnr.app)
- Enable Edge Functions for APIs
Configuration
# vercel.json
{
"framework": "nextjs",
"regions": ["iad1", "sfo1", "fra1"],
"functions": {
"api/**/*.ts": {
"maxDuration": 30
}
}
}๐
Step 4
Monitoring Setup
- Sentry error monitoring
- Performance monitoring (Web Vitals)
- Database health checks
- Agent transaction monitoring
- Alert configuration (PagerDuty/Slack)
Configuration
// sentry.config.ts
Sentry.init({
dsn: process.env.SENTRY_DSN,
tracesSampleRate: 0.1,
profilesSampleRate: 0.1,
integrations: [
new Sentry.BrowserTracing(),
],
});๐
Step 5
Security Hardening
- Enable Redis rate limiting
- Configure CORS policies
- Set up SSL certificates (auto via Vercel)
- Review API access controls
- Enable audit logging
Configuration
// Rate limiting config
const rateLimiter = new RateLimiter({
redis: redisClient,
max: 100,
windowMs: 60 * 1000,
keyPrefix: 'rl:',
});Pre-Deployment Checklist
Setup
โ
Environment variables configuredโ
Database schema deployedโ
Stripe webhooks configuredโ
Domain SSL certificate activeOperations
โ
Monitoring tools configuredโ
Backup strategy in placeโ
Load testing completedโ
Rollback plan documentedPost-Deployment Verification
๐ฅ
Health Check
GET /api/healthโก
Performance
Run Lighthouse audit
๐
Security
Verify SSL & headers
Need Deployment Help?
Our DevOps team can assist with custom deployment configurations.
๐ง Contact DevOps