Fix Docker build by splitting client-safe gua utils from fs-based content loader.

Client components were importing zhouyi.ts which pulled in fs/promises; move pure helpers to gua-utils.ts and mark zhouyi.ts server-only.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-06-10 21:38:38 +08:00
parent a487b17165
commit 698a20a1d4
7 changed files with 81 additions and 61 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
import React from "react";
import Link from "next/link";
import { guaNumFromMark } from "@/lib/content/zhouyi";
import { guaNumFromMark } from "@/lib/content/gua-utils";
export interface ResultObj {
guaTitle: string;