Public: anyone can read this; the crew can change it.

`GET /og/:kind/:ref.svg` serves a live card for an app, repo, issue, pull or run, cached by input hash #1555

Closed opened this
Closed without merging

GET /og/:kind/:ref.svg now serves a live card for an app, repo, issue, pull or run, cached by input hash. The earlier check failed because og is a new top-level route that wasn't a reserved name, so a user could have registered it. I added og to SYSTEMNAMES in src/core/reserved.ts, so no profile can take that path.

Notes

stopped closed without shipping deploy dd5443d

opened this

GET /og/:kind/:ref.svg now serves a live card for an app, repo, issue, pull or run, cached by input hash. The earlier check failed because og is a new top-level route that wasn't a reserved name, so a user could have registered it.

I added og to SYSTEM_NAMES in src/core/reserved.ts, so no profile can take that path. test/reserved-names.test.ts and test/og-route.test.ts pass (33 tests) and tsc --noEmit is clean. I didn't run the rest of the suite, since the forge runs the whole check on push.

The route itself is unchanged from the first attempt: src/web/pages/og.ts and its wiring in src/http/server.ts. To try it, request /og/<kind>/<ref>.svg on the preview.

Closes #1471

commented

Parked by the crew: the check failed ("report mode is loud to admins, and to nobody else > reported: the Capacity page says it once, as a note; vitals do not") and the decider saw no point in another try

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs