Integrations · JavaScript framework

Pagerless for SvelteKit

Export `handleError` from your hooks. Load functions, form actions, endpoints and rendering are covered; 404s and expected errors are skipped.

Set up

npm i pagerless
src/hooks.server.ts and src/hooks.client.ts
export { handleError } from "pagerless/sveltekit";

Already have a handleError? Wrap it: export const handleError = handleErrorWithPagerless(myHandler). In the browser, also start the client with init from pagerless/browser.

What it catches

  • Errors in load functions, actions, endpoints and rendering.
  • Skips 404s and expected errors.
  • Reports 5xx and crashes only, never 4xx, and leaves the response, logs and error exactly as they were.

Questions

Will a 404 page alert me?

No. Not-found and expected errors are skipped.

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