diff --git a/app/(dashboard)/dashboard/page.tsx b/app/(dashboard)/dashboard/page.tsx index 7946270..8aa65e6 100644 --- a/app/(dashboard)/dashboard/page.tsx +++ b/app/(dashboard)/dashboard/page.tsx @@ -78,7 +78,7 @@ export default async function DashboardPage() { } const workspaces = Array.from(workspaceMap, ([id, name]) => ({ id, name })); - const serializedProjects = projects.map((p) => ({ + const serializedProjects = projects.map((p: typeof projects[0]) => ({ id: p.id, name: p.name, description: p.description, diff --git a/lib/api-response.ts b/lib/api-response.ts index 25539b4..230fe51 100644 --- a/lib/api-response.ts +++ b/lib/api-response.ts @@ -126,7 +126,7 @@ export function successResponse( return NextResponse.json(body, { status }); } -export function withCacheControl(response: NextResponse, value: string): NextResponse { +export function withCacheControl(response: Response, value: string): Response { response.headers.set('Cache-Control', value); return response; }