toNextJsHandler.
Configure Corsair
corsair.ts
Mount the route
app/api/corsair/[[...path]]/route.ts
Pages Router? Export a catch-all API route at
pages/api/corsair/[...path].ts and forward req/res through the same toNextJsHandler. The App Router is the supported default.Run and go green
Start the dev server. On the first request to/api/corsair, your app self-registers its delivery URL and the Hub dashboard header dot turns green. See Delivery URLs.
Hub setup
Create a project, copy keys, reach the green check.
Add a plugin
GitHub, Slack, Linear, and more.