v0.4.1
Bug Fix
- Fix webhook auto-redeployment: Webhook Caddy route was being appended after app routes, causing host-based app routes to intercept
/_ocd/webhook/*requests before they reached the webhook receiver. The route is now prepended at position 0 so it's evaluated first.
Note for existing deployments
If you have an existing server with webhooks enabled, you'll need to reorder the route manually:
curl -sf -X DELETE http://localhost:2019/id/ocd-webhook-route
curl -sf -X POST -H 'Content-Type: application/json' \
-d '{"@id":"ocd-webhook-route","match":[{"path":["/_ocd/webhook/*"]}],"handle":[{"handler":"rewrite","strip_path_prefix":"/_ocd/webhook"},{"handler":"reverse_proxy","upstreams":[{"dial":"localhost:9876"}]}],"terminal":true}' \
http://localhost:2019/config/apps/http/servers/srv0/routes/0Full Changelog: v0.4.0...v0.4.1