Vercel
aixyz has first-class Vercel support using the Build Output API v3.VERCEL=1 and outputs a Vercel serverless function using Bun Runtime. The agent URL is auto-detected from Vercel environment variables.
vercel.json
Every aixyz project includes a vercel.json:
--vercel — the flag is automatically detected during Vercel builds.
Set OPENAI_API_KEY and any payment environment variables in the Vercel dashboard under Settings → Environment Variables.
Standalone (Bun Runtime)
For direct deployment on Bun-compatible hosts (DigitalOcean, Railway, Fly.io, etc.):.aixyz/output/server.js.
Environment Variables
Set these before running:Docker
Using the standalone build:Set the
url field in aixyz.config.ts manually for Docker deployments since Vercel environment variables won’t be
available.Build Output Formats
| Format | Flag | Output Path | Description |
|---|---|---|---|
| Standalone | (default) | .aixyz/output/server.js | Single-file bundle, run with bun |
| Vercel | VERCEL=1 or --output vercel | .vercel/output/ | Build Output API v3 for serverless |