docs: add note about node.js 22 requirement

This commit is contained in:
dswbx
2025-07-11 12:49:35 +02:00
parent 957355c862
commit db3c2cea10
6 changed files with 31 additions and 2 deletions

View File

@@ -4,6 +4,7 @@ description: 'Run bknd inside Next.js'
---
import InstallBknd from '/snippets/install-bknd.mdx';
## Installation
To get started with Next.js and bknd you can either install the package manually, and follow the descriptions below, or use the CLI starter:
@@ -23,10 +24,12 @@ To get started with Next.js and bknd you can either install the package manually
</Tabs>
## Configuration
<Warning>
When run with Node.js, a version of 22 (LTS) or higher is required. Please verify your version by running `node -v`, and [upgrade](https://nodejs.org/en/download/) if necessary.
</Warning>
Now create a `bknd.config.ts` file in the root of your project. If you created the project using the CLI starter, this file is already created for you.
```typescript bknd.config.ts
import type { NextjsBkndConfig } from "bknd/adapter/nextjs";