---
title: Deploy Whyo
description: Where each piece runs in production and the domains on whyo.app.
---

| Piece | Where | Domain |
| --- | --- | --- |
| api worker | Cloudflare Workers + D1 + R2 | `api.whyo.app` |
| Media | api worker route | `media.whyo.app` |
| mcp worker | Cloudflare Workers | `mcp.whyo.app` |
| Docs | Cloudflare Workers (`whyo-docs`, static assets) | `docs.whyo.app` and `whyo.app/docs` |
| Convex | Convex prod (`gallant-octopus-17`) | |

`media.whyo.app` points at the **api worker**, not straight at the bucket, so every file still needs a signed URL from Convex.

## Docs

One Worker serves two builds of the same docs: `deploy/` for `docs.whyo.app` and `deploy/docs/` (built with base `/docs`) for `whyo.app/docs`. Until there's a landing page, `whyo.app/` redirects to `/docs`.

```bash
pnpm deploy:docs
```

Stop `pnpm dev:docs` first; the full build won't run beside a dev server.

## Production Convex environment

| Variable | Value |
| --- | --- |
| `AUTH_ISSUER_URL` | `https://api.whyo.app` |
| `MCP_RESOURCE_URL` | `https://mcp.whyo.app/mcp` |
| `MEDIA_BASE_URL` | `https://media.whyo.app` |
| `MEDIA_SIGNING_SECRET` | Same as the api worker's secret |

Leave `AUTH_JWKS` unset in production. Convex fetches the keys from `AUTH_ISSUER_URL`.
