Integrations · JavaScript framework

Pagerless for tRPC

One adapter option. Only `INTERNAL_SERVER_ERROR` is reported; bad input and auth errors are your users' business, not an alert.

Set up

npm i pagerless
import { pagerlessTrpcOnError } from "pagerless/trpc";

// in your adapter options
onError: pagerlessTrpcOnError,

Keep your own handler too: onError: trpcOnError(yourHandler).

What it catches

  • Procedures that fail with INTERNAL_SERVER_ERROR.
  • Reports 5xx and crashes only, never 4xx, and leaves the response, logs and error exactly as they were.

Questions

Will a validation error page me?

No. Only INTERNAL_SERVER_ERROR is reported.

Updated .

Free for you and one backup · 3 apps · no card

Sleep through the small stuff.

Run one command in your repo. Pagerless shows every change before it makes it.

npx pagerless connect