Skip to content

Commit f779c14

Browse files
YousefEDclaude
andcommitted
docs: add Next.js serverExternalPackages note to server-processing page
Also removes outdated React 19 StrictMode note from Next.js page. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 7e4d771 commit f779c14

File tree

2 files changed

+18
-10
lines changed

2 files changed

+18
-10
lines changed

docs/content/docs/features/server-processing.mdx

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,21 @@ const html = await editor.withReactContext(
5252
async () => editor.blocksToFullHTML(blocks),
5353
);
5454
```
55+
56+
## Next.js App Router
57+
58+
If you're using `@blocknote/server-util` in a Next.js App Router API route (Route Handler), you need to add the BlockNote packages to `serverExternalPackages` in your `next.config.ts`:
59+
60+
```typescript
61+
import type { NextConfig } from "next";
62+
63+
const nextConfig: NextConfig = {
64+
serverExternalPackages: [
65+
"@blocknote/core",
66+
"@blocknote/react",
67+
"@blocknote/server-util",
68+
],
69+
};
70+
71+
export default nextConfig;
72+
```

docs/content/docs/getting-started/nextjs.mdx

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,4 @@ function App() {
5858
}
5959
```
6060

61-
## React 19 / Next 15 StrictMode
62-
63-
BlockNote is not yet compatible with React 19 / Next 15 StrictMode. For now, disable StrictMode in your `next.config.ts`:
64-
65-
```typescript
66-
...
67-
reactStrictMode: false,
68-
...
69-
```
70-
7161
This should resolve any issues you might run into when embedding BlockNote in your Next.js React app!

0 commit comments

Comments
 (0)