Skip to content

Commit 0f0d481

Browse files
YousefEDclaude
andcommitted
fix(xl-ai): remove 'use client' from server entry (BLO-1235)
The "@blocknote/xl-ai/server" entry carried a "use client" directive, which the build copied into dist/server.js. Frameworks like Next.js then treated the whole server bundle as client-only, breaking server usage of exports such as injectDocumentStateMessages. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 9cbf2ad commit 0f0d481

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

packages/xl-ai/src/server.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
"use client";
21
// exports that are safe to use on server
32
// for now, this is everything except
43
// React components, hooks and AIExtension (because it uses @ai-sdk/react)

0 commit comments

Comments
 (0)