Skip to content

Commit

Permalink
Add code to test Sentry in CF pages
Browse files Browse the repository at this point in the history
  • Loading branch information
rakyi committed Jan 24, 2025
1 parent 292e879 commit 79732e5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions functions/_common/reusableHandlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ export async function handleThumbnailRequest(
ctx: EventContext<unknown, any, Record<string, unknown>>,
extension: "png" | "svg"
) {
setTimeout(() => {
throw new Error("Testing Sentry from Cloudflare Functions")
})

const url = new URL(env.url)
const shouldCache = !url.searchParams.has("nocache")

Expand Down

0 comments on commit 79732e5

Please sign in to comment.