Skip to content

Scheduling infrastructure for absolutely everyone.

fix: Exclude .next from TS & fixup ImageResponse types (#18972)

Alex van Andelf8fa8ff2949d
diff --git a/apps/web/pages/api/social/og/image.tsx b/apps/web/pages/api/social/og/image.tsx
index c311be1b557..3756a8ff173 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 5fe50438a9b..eae67c4e7cc 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"]
}