Skip to content

Commit c1ce2ab

Browse files
Document Next.js version 15 requirement (#2540)
This pull request contains changes generated by Cursor background composer. Co-authored-by: Cursor Agent <[email protected]>
1 parent a612eb6 commit c1ce2ab

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

fern/01-guide/08-frameworks/01-react-nextjs/01-quick-start.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ title: React/Next.js Setup
44

55
This guide walks you through setting up BAML with React/Next.js, leveraging Server Actions and React Server Components for optimal performance.
66

7+
<Note>
8+
**Requirements:** This integration requires **Next.js 15 or higher**.
9+
</Note>
10+
711
## Example Usage
812

913
BAML automatically generates a server action and React hook for your BAML functions, with built-in support for both streaming and non-streaming modes. For details on the generated hooks, see [Generated Hooks](/ref/baml_client/react-next-js/use-function-name-hook).

fern/01-guide/08-frameworks/01-react-nextjs/02-chatbot.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ In this tutorial, you'll build a real-time streaming chatbot using BAML React ho
1313

1414
Before starting, ensure you have:
1515
- Completed the [Quick Start Guide](/guide/framework-integration/react-next-js/quick-start)
16-
- A Next.js project with BAML set up
16+
- A Next.js project (version 15 or higher) with BAML set up
1717
- An OpenAI API key
1818

1919
## Step 1: Define the Chat Function

typescript/packages/nextjs-plugin/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
Next.js integration for BAML, providing seamless support for server components, server actions, and streaming responses.
44

5+
## Requirements
6+
7+
- **Next.js 15 or higher**
8+
59
## Installation
610

711
```bash

0 commit comments

Comments
 (0)