Release 0.12.2
Added error handling for webhooks and guards for GitHub secrets.
View full changelog
Fixed
- Worker uncaught exception handling: Wrapped the
fetchhandler'shandleWebhookcall in a top-level try/catch so any unhandled exception returns a 500 response instead of crashing the Worker with a Cloudflare 1101 error. GitHub retries on 500, so no webhook deliveries are permanently lost. - Missing secret guards: Added explicit configuration guards for
GITHUB_PRIVATE_KEY(inimportPrivateKey) andPAGES_BUILD_HOOK_URL(inmaybeTriggerBuild), throwing descriptive errors when either secret is not set rather than a crypticTypeError.