mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-13 14:32:03 +00:00
fix(daily): keep the coach check-in constants out of the client bundle
The Today hero and the check-in hook imported the check-in intent constants from digest.ts, which — since the milestone slice — transitively reaches the database through the streak baseline engine. That pulled the Postgres driver into the client bundle (a Turbopack 'Can't resolve net/tls/dns' build failure the worktree build couldn't surface). Move the four constants to a tiny, dependency-free coach-checkin-intents module; the client imports them from there, and digest.ts (the server builder) stays server-only.
This commit is contained in:
1 parent
2d9237fbad
commit
ba5a17a54e
6 files changed
+47
-11
No files matched your search
@@ -46,11 +46,11 @@ import { useTranslations } from "@/lib/i18n/context";
|
||||
import { cn } from "@/lib/utils";
|
||||
import type { ScoreRingId } from "@/lib/dashboard-layout";
|
||||
import type { DashboardScoreRing } from "@/lib/dashboard/score-rings";
|
||||
import type { DailyDigest } from "@/lib/daily/digest";
|
||||
import {
|
||||
COACH_CHECKIN_KEEP_INTENT,
|
||||
COACH_CHECKIN_LETGO_INTENT,
|
||||
type DailyDigest,
|
||||
} from "@/lib/daily/digest";
|
||||
} from "@/lib/daily/coach-checkin-intents";
|
||||
|
||||
/**
|
||||
* v1.29.0 — the selected score rings return to the hero. The maps mirror the
|
||||
|
||||
Reference in new issue
Block a user