Cloud Run Backend

Deploy FastAPI backend from the fastapi/ folder to Google Cloud Run.

Steps

  1. Build/deploy service from fastapi/
  2. Apply backend env variables
  3. Ensure service is reachable from frontend and worker
  4. Verify health endpoint

Health check:

GET /health

Expected response:

{"status":"ok"}

Common errors

ErrorCauseFix
500 on startupInvalid env configValidate all required backend env vars
401 webhook/auth issuesClerk secret mismatchAlign backend Clerk secrets
Worker proxy errorsWrong Cloud Run URL in worker envUpdate worker CLOUD_RUN_URL

Related pages

Whitepapper

Whitepapper is an API first CMS engine for devs who publish content.

Antk i n