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

@@ -50,6 +50,11 @@ To get started with Astro and bknd you can either install the package manually,
## 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

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";

View File

@@ -6,6 +6,7 @@ import InstallBknd from '/snippets/install-bknd.mdx';
## Installation
To get started with Node and bknd you can either install the package manually, and follow the descriptions below, or use the CLI starter:
<Tabs>
@@ -24,6 +25,11 @@ To get started with Node and bknd you can either install the package manually, a
</Tabs>
## Serve the API & static files
<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>
The `serve` function of the Node adapter makes sure to also serve the static files required for
the admin panel.

View File

@@ -23,6 +23,11 @@ To get started with React Router and bknd you can either install the package man
</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

View File

@@ -17,6 +17,11 @@ npm install @hono/vite-dev-server
```
## 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.
```typescript bknd.config.ts

View File

@@ -69,6 +69,11 @@ Throughout the documentation, it is assumed you use `bknd.config.ts` to define y
## SQLite
### Using config object
<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>
The `sqlite` adapter is automatically resolved based on the runtime.
| Runtime | Adapter | In-Memory | File | Remote |