From f8fa8ff2949df0ade4226c1e019efaf68a313455 Mon Sep 17 00:00:00 2001 From: Alex van Andel Date: Wed, 29 Jan 2025 02:33:59 +0000 Subject: [PATCH] fix: Exclude .next from TS & fixup ImageResponse types (#18972) --- apps/web/pages/api/social/og/image.tsx | 2 +- apps/web/tsconfig.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/web/pages/api/social/og/image.tsx b/apps/web/pages/api/social/og/image.tsx index c311be1b55..3756a8ff17 100644 --- a/apps/web/pages/api/social/og/image.tsx +++ b/apps/web/pages/api/social/og/image.tsx @@ -1,5 +1,5 @@ -import { ImageResponse } from "@vercel/og"; import type { NextApiRequest } from "next"; +import { ImageResponse } from "next/server"; import type { SatoriOptions } from "satori"; import { z } from "zod"; diff --git a/apps/web/tsconfig.json b/apps/web/tsconfig.json index 5fe50438a9..eae67c4e7c 100644 --- a/apps/web/tsconfig.json +++ b/apps/web/tsconfig.json @@ -34,5 +34,5 @@ "../../packages/features/bookings/lib/getUserBooking.ts", "../../packages/features/Segment.tsx" ], - "exclude": ["node_modules"] + "exclude": ["node_modules", ".next"] }