Advanced Deployment.

Advanced configurations for enterprise deployments and power users.

Custom domain

Add a custom route in wrangler.toml: routes = [{ pattern = "api.yourdomain.com/*", zone_name = "yourdomain.com" }]. Point your DNS to Cloudflare. Your Worker is now accessible at your custom domain.

Hyperdrive (connection pooling)

The backend has a HYPERDRIVE_DB binding configured but not yet active. When enabled, Hyperdrive pools PostgreSQL connections at the edge, reducing latency for database-heavy workloads. Enable by creating a Hyperdrive config in the Cloudflare dashboard and updating wrangler.toml.

KV caching

The INTERN_CACHE KV binding is configured but not yet active. When enabled, frequently accessed data (agent templates, skill lists, user preferences) will be cached at the edge for sub-millisecond reads. Enable by creating a KV namespace and updating wrangler.toml.

Multi-region database

Neon PostgreSQL supports read replicas in multiple regions. Add a read replica in the Neon dashboard and update DATABASE_URL to use the pooled connection string. The Drizzle ORM configuration in backend/src/db/index.ts handles the connection.