Skip to main content
MNNR/Documentation
๐Ÿš€ 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 active

Operations

โœ“
Monitoring tools configured
โœ“
Backup strategy in place
โœ“
Load testing completed
โœ“
Rollback plan documented

Post-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