voorhoede / head-start

Base setup on top of headless services to help you quickly start a new website
ISC License
3 stars 0 forks source link

Error reporting (Sentry) #80

Open jbmoelker opened 7 months ago

jbmoelker commented 7 months ago

User Story

As a developer, I want run-time errors to be accessible somewhere, so that I can review and fix them.

System design

Note: Sentry provides an official @sentry/astro package. However that wraps @sentry/browser and @sentry/node. We can't use the Node.js package as it's incompatible with Cloudflare. And we don't want the browser package to be loaded always and directly (see point about conditional loading and performance). But the package is a good reference for implementation and use of Astro middleware.

Questions