Deploy

Clay ships three Cloudflare deployable surfaces.

Surfaces

Backend Worker

apps/backend runs as a Cloudflare Worker.

Landing pages

apps/landing is a Next.js static export deployed to Cloudflare Pages.

Specs site

apps/specs is a Mintlify static export deployed to Cloudflare Pages.

Backend Worker

pnpm --filter @clay/backend deploy
This invokes wrangler deploy against the configuration in apps/backend/wrangler.toml. The Worker entry is src/index.ts and bindings are described in wrangler.toml and src/env.ts.

Landing pages

pnpm --filter @clay/landing build
pnpm --filter @clay/landing cf:deploy
The landing app produces a static export in apps/landing/out/ and Wrangler publishes it to the clay-landing Pages project.

Specs site

pnpm --filter @clay/specs build
pnpm --filter @clay/specs cf:deploy
The specs app exports Mintlify into apps/specs/.mintlify-export/ and Wrangler publishes it to the clay-specs Pages project.
The deploy script uses --commit-dirty=true so that local unpublished changes can still be published. Push your changes before deploying if you want them in the deployed history.

Backend overview

The Hono + OpenAPI contract that this Worker publishes.

Architecture

The Turborepo surface layout behind the three deployable surfaces.

Workspace

The pnpm + Turborepo tasks that build and ship each surface.