From 9096212c0f0bdd0482b9ec5700ac9eeb2ce1f2c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ra=C4=8D=C3=A1k?= Date: Mon, 13 Jan 2025 14:22:49 +0100 Subject: [PATCH] Add route to test Sentry --- adminSiteServer/apiRouter.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/adminSiteServer/apiRouter.ts b/adminSiteServer/apiRouter.ts index 90afc08798..966797ccfe 100644 --- a/adminSiteServer/apiRouter.ts +++ b/adminSiteServer/apiRouter.ts @@ -432,4 +432,8 @@ apiRouter.put("/deploy", async (req, res) => { return triggerStaticBuild(res.locals.user, "Manually triggered deploy") }) +apiRouter.get("/debug-sentry", async (req, res) => { + throw new Error("Test Sentry error.") +}) + export { apiRouter }