Skip to main content

Deployment Options

Vercel

Deploy serverless functions with zero config

Railway

Deploy with automatic scaling

AWS Lambda

Run on AWS serverless infrastructure

Docker

Containerize and deploy anywhere

Deploy to Vercel

1. Create API Route

Create api/chat.js:

2. Deploy

Deploy Router SDK

1. Create Server

2. Deploy to Railway

Environment Variables

Set these in your deployment platform:

Docker Deployment

Build and run:

Best Practices

  • Always use environment variables for credentials
  • Implement proper error handling
  • Use health check endpoints
  • Monitor with logging services
  • Set up auto-scaling for high traffic

Next Steps

Error Handling

Handle errors gracefully