Skip to main content

Cloudflare Deployment

Projects:

  • Pages project: chyperai-pages (app runtime + API routes)
  • Worker project: chyperai-worker (Durable Objects)
  • Docs project: chyperai-docs (Docusaurus site)

Config files:

  • wrangler.toml → Pages
  • wrangler.worker.toml → Worker

Deploy Pages:

npx wrangler pages deploy

Deploy Worker:

npx wrangler deploy --config wrangler.worker.toml

Attach custom domains in Cloudflare Dashboard:

  • dev.chyper.ai → chyperai-pages
  • docs.dev.chyper.ai → chyperai-docs

Smoke tests:

curl -i https://dev.chyper.ai/api/hello
curl -i https://dev.chyper.ai/api/containers/new
curl -i https://dev.chyper.ai/api/projects