From 8f015614ba09f6fe71a2ca1dc38efe558d2faf8d Mon Sep 17 00:00:00 2001 From: Stan Wohlwend Date: Fri, 7 Jun 2024 12:04:23 +0200 Subject: [PATCH] Fix type error --- .../stack-server/src/route-handlers/smart-route-handler.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/stack-server/src/route-handlers/smart-route-handler.tsx b/packages/stack-server/src/route-handlers/smart-route-handler.tsx index e5e1d3d6b..4ca3d664f 100644 --- a/packages/stack-server/src/route-handlers/smart-route-handler.tsx +++ b/packages/stack-server/src/route-handlers/smart-route-handler.tsx @@ -71,7 +71,7 @@ export function deprecatedSmartRouteHandler(handler: (req: NextRequest, options: console.log(`[ RES] [${requestId}] ${req.method} ${censoredUrl} (in ${time.toFixed(0)}ms)`); return res; } catch (e) { - let statusError; + let statusError: StatusError; try { statusError = catchError(e); } catch (e) {