Skip to content

Domains, Pages projects, and auth cookies

Canonical reference for production URLs, Cloudflare Pages project names, and what shares auth cookies with the API worker.

Source of truth in code: packages/seo/src/constants.ts, apps/worker/src/lib/config.ts.


Production surfaces

SurfaceAppCustom domainPages project*.pages.dev defaultAuth cookies
Marketingapps/landingcepatedge.comcepatedgecepatedge.pages.devNo
Product demo SPAapps/webapp.cepatedge.comapp-cepatedgeapp-cepatedge.pages.devYes (.cepatedge.com)
APIapps/workerapi.cepatedge.com— (Worker)*.workers.devSets auth cookie
Docsapps/docsdocs.cepatedge.comdocs-cepatedgedocs-cepatedge.pages.devNo
Git analyticsapps/gitgit.cepatedge.comgit-cepatedgegit-cepatedge.pages.devNo

Naming convention: Pages apps use <app>-cepatedge except the main marketing site, which uses project cepatedge so the default hostname is cepatedge.pages.dev.

Cloudflare redirects *.pages.dev → custom domain when configured. Do not add *.pages.dev or legacy *.zamdev.dev hosts to cookie or CORS allowlists — production auth uses cepatedge.com only.


Auth cookies (app + API only)

  • Cookie domain: .cepatedge.com (parent domain).
  • Applies to: app.cepatedge.com SPA and api.cepatedge.com worker.
  • Does not apply to: docs.cepatedge.com, git.cepatedge.com, cepatedge.com (landing is static; no worker session).

Local dev: localhost cookies without a parent domain.


R2 storage

  • Binding: CEPATEDGE_STORAGE in apps/worker/wrangler.jsonc
  • Bucket name: cepatedge (single bucket; keys namespaced avatars/, attachments/, etc.)

Deploy commands (from repo root)

bash
pnpm landing:deploy   # cepatedge.com  (project cepatedge)
pnpm web:deploy       # app.cepatedge.com (project app-cepatedge)
pnpm worker:deploy    # api.cepatedge.com
pnpm docs:deploy      # docs.cepatedge.com
pnpm git:deploy       # git.cepatedge.com

Local development

bash
pnpm dev              # worker + web (8787 + vite)
pnpm docs:dev         # VitePress docs
pnpm landing:dev      # marketing site
ServiceLocal URL
APIhttp://localhost:8787
Web SPAhttp://localhost:5173 (or 3000 per app)
Docshttp://localhost:8282

DNS checklist (Cloudflare)

  1. cepatedge.com → Pages project cepatedge
  2. app.cepatedge.com → Pages project app-cepatedge
  3. docs.cepatedge.com → Pages project docs-cepatedge
  4. git.cepatedge.com → Pages project git-cepatedge
  5. api.cepatedge.com → Worker custom domain
  6. Optional: redirect old *.dev / *.pages.dev bookmarks to .com (Pages/Workers dashboard)