Skip to content

Add Render deploy for the FastAPI backend - #12

Merged
HaniMoudarres merged 1 commit into
mainfrom
Hani/infra/add-render-deploy
Nov 30, 2026
Merged

HaniMoudarres merged 1 commit into
mainfrom
Hani/infra/add-render-deploy

Conversation

@HaniMoudarres

Copy link
Copy Markdown
Collaborator

Sets up hosting for api/ on Render. No app features yet; the service only serves /health.

  • render.yaml (Render Blueprint, repo root): free plan in the Virginia region (next to Supabase), rootDir: api, build with uv sync --locked --no-dev, start with uv run --no-sync uvicorn app.main:app --host 0.0.0.0 --port $PORT, health check /health. It deploys a main commit only after its GitHub checks pass, and only when api/ changed. Secrets are sync: false, so Render asks for them in its dashboard. PYTHON_VERSION is set to 3.14.10 because Render only reads .python-version from the repo root.
  • CORS: FastAPI allows the origins listed in CORS_ORIGINS (default http://localhost:3000). Tests cover an allowed origin and a rejected one.
  • CI: one new step in the existing api job starts the server with Render's start command and calls /health. No new jobs.
  • Docs: a hosting section in docs/architecture.md (free plan until alpha, then Starter). AGENTS.md now says new backend variables also go in render.yaml.

Checked locally by reproducing Render's build in a clean copy of api/ (production packages only), starting the server, calling /health, and confirming a CORS preflight.

Made with Cursor

render.yaml Blueprint: free plan in Virginia, builds api/ with uv, deploys main only after checks pass, secrets prompted in the dashboard. Adds CORS configured by CORS_ORIGINS, and a CI step that starts the server with Render's start command and calls /health.

Co-authored-by: Cursor <cursoragent@cursor.com>
@HaniMoudarres HaniMoudarres self-assigned this Nov 30, 2026
@HaniMoudarres
HaniMoudarres merged commit ef9777d into main Nov 30, 2026
6 checks passed
@HaniMoudarres
HaniMoudarres deleted the Hani/infra/add-render-deploy branch November 30, 2026 03:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant