import type { PageServerLoad } from './$types'; export const load: PageServerLoad = async ({ url }) => { if (url.searchParams.get('server_error') === '1') { // This unhandled throw is caught by handleError in hooks.server.ts, // which forwards it to GlitchTip via Sentry.captureException. throw new Error('GlitchTip server-side test error — ' + new Date().toISOString()); } return {}; };