Set up
import "npm:pagerless/auto";With a package.json, import "pagerless/auto" works too.
What it catches
- Uncaught errors and unhandled rejections.
- Errors from
Deno.servehandlers, re-thrown unchanged. - Failing
fetchcalls. - Sends before the process exits.
Questions
Does it work on Deno Deploy?
It uses the same Deno APIs; set PAGERLESS_KEY in the project's environment variables.