Fix type error

This commit is contained in:
Stan Wohlwend 2024-06-07 12:04:23 +02:00
parent 7938ff6439
commit 8f015614ba

View File

@ -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) {