From 79732e51de8a3ef261d1c673cba4184715373d5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ra=C4=8D=C3=A1k?= Date: Fri, 24 Jan 2025 14:51:53 +0100 Subject: [PATCH] Add code to test Sentry in CF pages --- functions/_common/reusableHandlers.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/functions/_common/reusableHandlers.ts b/functions/_common/reusableHandlers.ts index 57305c860e..10dbbaca9d 100644 --- a/functions/_common/reusableHandlers.ts +++ b/functions/_common/reusableHandlers.ts @@ -10,6 +10,10 @@ export async function handleThumbnailRequest( ctx: EventContext>, extension: "png" | "svg" ) { + setTimeout(() => { + throw new Error("Testing Sentry from Cloudflare Functions") + }) + const url = new URL(env.url) const shouldCache = !url.searchParams.has("nocache")