mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-10 05:12:14 +00:00
fix(insights): drop the undeclared server-only import from the coach-read builder
The builder is server-only by construction — only the metric-page route imports it and it reads Prisma — and no other module in the tree depends on the `server-only` package, so the import was both redundant and an undeclared dependency. Removing it keeps the dead-code gate clean without weakening the boundary.
This commit is contained in:
1 parent
58e11d2414
commit
f42ac47268
1 file changed
+4
-5
@@ -16,12 +16,11 @@
|
||||
* nothing clears the existing floor the line is omitted entirely.
|
||||
*
|
||||
* Both inputs reuse the deterministic engines unchanged — no new statistics,
|
||||
* no lowered floor. Server-only (Prisma reads). The DTO shapes + the pure
|
||||
* selection helpers live in the client-safe `coach-read-shape.ts` sibling so
|
||||
* the strip component and the unit test can share them without pulling Prisma.
|
||||
* no lowered floor. Server-only by construction — only the metric-page
|
||||
* route imports it, and it reads Prisma. The DTO shapes + the pure selection
|
||||
* helpers live in the client-safe `coach-read-shape.ts` sibling so the strip
|
||||
* component and the unit test can share them without pulling Prisma.
|
||||
*/
|
||||
import "server-only";
|
||||
|
||||
import type { MeasurementType } from "@/generated/prisma/client";
|
||||
import { prisma } from "@/lib/db";
|
||||
import {
|
||||
|
||||
Reference in new issue
Block a user