Ern Internal Docs
Apps

cms

Payload CMS for content management

What it does

cms is the Payload-based content management app used to manage marketing content and media.

Run locally

bun run dev:cms

Runs on http://localhost:5003.

Key environment variables

Source of truth:

  • apps/cms/.env.example

  • apps/cms/README.md

  • DATABASE_URL: PostgreSQL connection string.

  • PAYLOAD_SECRET: Payload session and crypto secret.

  • SITE_URL: Canonical CMS URL.

  • TOOLS_API_WEBHOOK_URL: Internal webhook endpoint in tools-api.

  • TOOLS_API_WEBHOOK_SECRET: Shared webhook verification secret.

Deploy and ownership

  • Deploy target: Railway.
  • Operational note: schema changes should include generated Payload migrations before merge.
  • Team: Ern engineering.
  • Primary: Ern engineering on-call.

On this page