전체 코드, 구조 검토 - P2 코드 수정 진행
This commit is contained in:
+4
-1
@@ -48,7 +48,10 @@ export function withApiHandler<P = Record<string, never>>(
|
||||
error: String(error),
|
||||
duration: Date.now() - t0,
|
||||
});
|
||||
throw error;
|
||||
return NextResponse.json(
|
||||
{ message: "Internal server error" },
|
||||
{ status: 500 }
|
||||
);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user