mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-13 06:32:03 +00:00
fix(cycle): keep custom-symptom client constants out of the server crypto module
The log sheet's chip grid imported the icon allow-list from custom-symptoms.ts, which pulls node:crypto + the AES helpers into the client bundle and broke the Turbopack build for /cycle. Split the client-safe constants and Zod schemas into custom-symptoms-shared.ts; the server module re-exports them so the API routes are unchanged, and the client imports from the shared module.
This commit is contained in:
1 parent
32552f02ec
commit
2f44654dbe
3 files changed
+106
-80
No files matched your search
@@ -43,7 +43,7 @@ import {
|
||||
} from "@/components/ui/popover";
|
||||
import { ResponsiveSheet } from "@/components/ui/responsive-sheet";
|
||||
import { useTranslations } from "@/lib/i18n/context";
|
||||
import { CUSTOM_SYMPTOM_ICON_ALLOWLIST } from "@/lib/cycle/custom-symptoms";
|
||||
import { CUSTOM_SYMPTOM_ICON_ALLOWLIST } from "@/lib/cycle/custom-symptoms-shared";
|
||||
import { CYCLE_SYMPTOM_CATALOG } from "./symptom-catalog";
|
||||
import { FLOW_HUE } from "./phase-tokens";
|
||||
import {
|
||||
|
||||
Reference in new issue
Block a user