π 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