Skip to main content
webhooks.planetscale() verifies the HMAC-SHA256 signature PlanetScale sends in x-planetscale-signature on every request.
/trigger/planetscale.ts

Set up PlanetScale

  1. Start trigger dev or deploy, then copy the endpoint’s Webhook URL from the Webhooks page.
  2. 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.
  3. In the webhook’s menu, choose Show secret, copy it, and choose Set signing secret on the Trigger.dev endpoint.
  4. Choose Test webhook in the same menu to send a webhook.test event, or use the endpoint’s Test tab, and check the endpoint’s Deliveries tab. See Verify the connection if nothing arrives.