Skip to content

Quote the previews flag, document PORT, and trim the comments - #10

Merged
Ho1yShif merged 2 commits into
mainfrom
docs/port-and-previews-schema
Jul 30, 2026
Merged

Quote the previews flag, document PORT, and trim the comments#10
Ho1yShif merged 2 commits into
mainfrom
docs/port-and-previews-schema

Conversation

@Ho1yShif

@Ho1yShif Ho1yShif commented Jul 30, 2026

Copy link
Copy Markdown
Collaborator

Two commits, no behavior change.

Quote the previews flag, and document PORT. generation: off is a YAML boolean, so it failed render blueprints validate. Quoted. PORT gained a README row and an .env.example entry — it's a real knob since #9, and nothing documented it.

Trim the comments back to the reasons. Every comment this fork added had grown into a paragraph. Cut to what a reader can't get from the code. 14 files, 76 net lines gone.

Verified: blueprint valid, ruff clean, 27 unit tests pass, docker build succeeds, shellcheck clean.

README prose is untouched — that's an editorial pass, not a comment pass.

🤖 Generated with Claude Code

Ho1yShif and others added 2 commits July 29, 2026 21:49
Two cleanups found running the template quality bar over the Render-specific
commits. Neither changes what the live service does.

render.yaml failed validation against render.com/schema/render.yaml.json:

  ['previews','generation'] -> False is not of type 'string'
  ['previews','generation'] -> False is not one of ['automatic','manual','off']

Bare `off` is a YAML boolean. Render's own parser reads it as the string anyway
— the deployed service reports previews.generation "off" — so nothing was
broken, but `render blueprints validate` and any schema-aware editor flag it,
and a Blueprint that doesn't validate is a bad thing to hand someone as a
starting point. Quoted, it validates with zero errors.

PORT was the one env var declared in render.yaml and documented nowhere. Now
that the Dockerfile's CMD passes it through to uvicorn it is a real knob, so
both notes describe it as one: the README explains why it is declared at all
rather than left to Render's port detection, and .env.example says what setting
it does and doesn't do locally, since docker compose pins it to 8000 to keep the
published ports and the healthchecks honest.

Sits on top of the CMD fix, because a PORT documented as adjustable is only true
with that change in.

Verified: `render blueprints validate` reports valid: true with zero errors.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Every comment this fork added had grown into a paragraph. Cut them to the fact a
reader can't get from the code, dropping restatements of the line below, detail
already recorded elsewhere in the repo, and the history of how each fix was found.
Comments only — no behavior, no config values.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@Ho1yShif
Ho1yShif merged commit f485339 into main Jul 30, 2026
5 of 13 checks passed
@Ho1yShif
Ho1yShif deleted the docs/port-and-previews-schema branch July 30, 2026 05:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant