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
View File
@@ -23,6 +23,7 @@
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-markdown": "^9.0.3",
"server-only": "^0.0.1",
"tailwind-merge": "^2.6.0"
},
"devDependencies": {