@@ -103,6 +103,37 @@ command preserves unrelated variables, ignores the target in Git, and writes
103103owner-only permissions. For deployment, add only environment variable names
104104and secret-manager references; the human supplies live values during handoff.
105105
106+ ## Configure test webhook delivery when used
107+
108+ If the integration implements a Zoneless webhook route, determine its public
109+ HTTPS URL. For localhost, explain that Zoneless cannot reach ` localhost ` ; the
110+ human must run a tunnel such as ` ngrok http <port> ` or Cloudflare Tunnel and
111+ provide its public URL. Do not silently install or leave a tunnel running.
112+
113+ Before handoff, ask for that URL so you can complete webhook sync. If the human
114+ cannot provide one, distinguish ** application code complete** from ** webhook
115+ delivery pending** and include the exact command they must run later.
116+
117+ For the standard marketplace flow, sync the onboarding, transfer, and payout
118+ events without displaying the signing secret:
119+
120+ ``` bash
121+ npx @zoneless/cli@latest webhook sync \
122+ --url " https://<public-host>/<server-webhook-route>" \
123+ --events " account.updated,transfer.created,payout.paid,payout.failed" \
124+ --json
125+ ```
126+
127+ Add ` --target <relative-path> ` when the server uses a non-default env file.
128+ ` webhook sync ` replaces the managed endpoint's event list, so if the application
129+ already handles other Zoneless events, pass the union of its existing events
130+ and the marketplace events it needs. Restart the application afterward so it
131+ loads ` ZONELESS_WEBHOOK_SECRET ` .
132+
133+ If the implementation intentionally retrieves account and payout status instead
134+ of using webhooks, do not create an unused endpoint or require
135+ ` ZONELESS_WEBHOOK_SECRET ` .
136+
106137## Use test mode, then hand off live promotion
107138
108139Setup provisions both test and live profiles and makes test the current CLI
0 commit comments