webhooks.planetscale() verifies the HMAC-SHA256 signature PlanetScale sends in x-planetscale-signature on every request.
/trigger/planetscale.ts
Set up PlanetScale
- Start
trigger devor deploy, then copy the endpoint’s Webhook URL from the Webhooks page. - Select the database in PlanetScale, then Settings > Webhooks > Add webhook. Enter the webhook URL and select the events your subscribers need. This needs the database administrator role.
- In the webhook’s menu, choose Show secret, copy it, and choose Set signing secret on the Trigger.dev endpoint.
- Choose Test webhook in the same menu to send a
webhook.testevent, or use the endpoint’s Test tab, and check the endpoint’s Deliveries tab. See Verify the connection if nothing arrives.

