Repository navigation
Add Render deploy for the FastAPI backend - #12
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 withuv sync --locked --no-dev, start withuv run --no-sync uvicorn app.main:app --host 0.0.0.0 --port $PORT, health check/health. It deploys amaincommit only after its GitHub checks pass, and only whenapi/changed. Secrets aresync: false, so Render asks for them in its dashboard.PYTHON_VERSIONis set to 3.14.10 because Render only reads.python-versionfrom the repo root.CORS_ORIGINS(defaulthttp://localhost:3000). Tests cover an allowed origin and a rejected one.apijob starts the server with Render's start command and calls/health. No new jobs.docs/architecture.md(free plan until alpha, then Starter).AGENTS.mdnow says new backend variables also go inrender.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