Skip to content

STC-994: Document the Fastly Connect-API backend in the README - #62

Merged
filias merged 1 commit into
mainfrom
STC-994/document-connect-backend
Sep 21, 2026
Merged

filias merged 1 commit into
mainfrom
STC-994/document-connect-backend

Conversation

@filias

@filias filias commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

The README never mentioned stc-backend anywhere, so the one setup step most likely to break a Fastly integration was undocumented in the SDK's own docs. It now describes both backends where a reader first meets the handler, and documents connectBackend (added in #61) in the API reference.

While in that section, two things were stale and one of them is a real trap: the Fastly examples passed event.request where the handler takes the whole event. Anyone copying them gets a broken integration — the SDK reads event.client for viewer IP/geo/JA3 and event.waitUntil to keep post-response analytics alive, and neither exists on a bare Request. The demo at demos/fastly/src/index.js has always passed event; only the README was wrong. The signature line in the API reference said request too.

No behaviour change — documentation only.

Part of STC-793, after #60 and #61. The same option still needs documenting in connect-public-docs and in the dashboard instruction templates; those are separate repos and separate PRs.

The README never named stc-backend at all, and its Fastly examples passed
event.request where the handler takes the event — copying them gives a
broken integration.
@filias
filias marked this pull request as ready for review September 21, 2026 12:10
@filias
filias merged commit 3e1c5e0 into main Sep 21, 2026
2 checks passed
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