Where:src/lib/auth.ts Why: It imports from ./server/db. Keeping server-side dependencies in the general $lib folder risks accidental imports by client components, breaking the Vite build and potentially leaking server logic. Fix: Move and rename it to src/lib/server/session.ts (or authUtils.ts) and update imports in .server.ts files.
**Where:** `src/lib/auth.ts`
**Why:** It imports from `./server/db`. Keeping server-side dependencies in the general `$lib` folder risks accidental imports by client components, breaking the Vite build and potentially leaking server logic.
**Fix:** Move and rename it to `src/lib/server/session.ts` (or `authUtils.ts`) and update imports in `.server.ts` files.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Where:
src/lib/auth.tsWhy: It imports from
./server/db. Keeping server-side dependencies in the general$libfolder risks accidental imports by client components, breaking the Vite build and potentially leaking server logic.Fix: Move and rename it to
src/lib/server/session.ts(orauthUtils.ts) and update imports in.server.tsfiles.