perf: do not import from @calcom/lib/server barrel file (#19579)

* do not import from lib/server barrel file

* fix build
This commit is contained in:
Benny Joo authored and GitHub committed 2025-02-26 18:10:52 -03:00
1 parent 48b8afd8af
commit d7960021aa
215 files changed
+271 -215

No files matched your search

+1 -1
View File
@@ -4,7 +4,7 @@ import { ApiError } from "next/dist/server/api-utils";
import type { NextRequest } from "next/server";
import { NextResponse } from "next/server";
import { getServerErrorFromUnknown } from "@calcom/lib/server";
import { getServerErrorFromUnknown } from "@calcom/lib/server/getServerErrorFromUnknown";
export const apiRouteMiddleware =
(handler: (req: NextRequest, { params }: { params: Params }) => Promise<NextResponse>) =>