From 9c135d32892e4bc60c36ad1d21b57403e2101aba Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 11 Jun 2026 05:45:55 +0000 Subject: [PATCH] Fix ESLint type import and add better-auth to serverExternalPackages Prevents Turbopack from statically analyzing better-auth's kysely adapter, which imports symbols removed in kysely 0.29. Also fixes @typescript-eslint consistent-type-imports warning on the Db type alias. https://claude.ai/code/session_014126WHVRT8mftmqkU6dajG --- next.config.js | 2 +- src/server/api/routers/time-entries.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/next.config.js b/next.config.js index 88f92be..56b1ae2 100644 --- a/next.config.js +++ b/next.config.js @@ -8,7 +8,7 @@ import "./src/env.js"; const config = { output: "standalone", reactCompiler: true, - serverExternalPackages: ["pg"], + serverExternalPackages: ["pg", "better-auth"], }; export default config; diff --git a/src/server/api/routers/time-entries.ts b/src/server/api/routers/time-entries.ts index dfad47a..77bebbf 100644 --- a/src/server/api/routers/time-entries.ts +++ b/src/server/api/routers/time-entries.ts @@ -3,7 +3,7 @@ import { eq, and, desc, isNull, isNotNull, gte, lte, or } from "drizzle-orm"; import { createTRPCRouter, protectedProcedure } from "../trpc"; import { timeEntries, clients, invoices, invoiceItems } from "~/server/db/schema"; import { TRPCError } from "@trpc/server"; -import { db } from "~/server/db"; +import type { db } from "~/server/db"; type Db = typeof db;