mirror of
https://github.com/shishantbiswas/bknd.git
synced 2026-03-15 20:17:22 +00:00
docs: add note about node.js 22 requirement
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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";
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 |
|
||||
|
||||
Reference in New Issue
Block a user