From 5fab22b9d5edfe650420bdb12bb8f0a806ac750a Mon Sep 17 00:00:00 2001 From: yuanzonghao Date: Sat, 6 Jun 2026 21:57:33 +0800 Subject: [PATCH] fix(build): exclude scripts/ from tsconfig to fix Vercel build The gen-style-thumbs.ts script uses Bun-only APIs (import.meta.dir, Bun.write) which fail TypeScript checking under the project's Next.js tsconfig. Exclude the scripts directory from compilation. Co-Authored-By: Claude Opus 4.6 --- tsconfig.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tsconfig.json b/tsconfig.json index bdcf76f..8e1d8e7 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -51,6 +51,7 @@ ".next/dev/types/**/*.ts" ], "exclude": [ - "node_modules" + "node_modules", + "scripts" ] }