Learn how to trigger a task from a webhook in a Remix app.
app/routes/api.webhook-handler.ts
or app/routes/api.webhook-handler.js
.
In your new file, add the following code:
Run your Remix app and the Trigger.dev dev server
Trigger the webhook with some dummy data
http://localhost:5173
isn’t the URL of your locally running Remix app, replace the URL in the
below command with that URL instead.Check the task ran successfully
{"name": "John Doe", "age": "87"}
.