mirror of
https://github.com/bknd-io/bknd/
synced 2026-08-03 00:26:01 +00:00
docs: corrected app function parameter signature
This commit is contained in:
@@ -86,7 +86,7 @@ export default {
|
||||
url: "file:data.db",
|
||||
},
|
||||
// or use the `app` function which passes the environment variables
|
||||
app: ({ env }) => ({
|
||||
app: (env) => ({
|
||||
connection: {
|
||||
url: env.DB_URL,
|
||||
},
|
||||
|
||||
@@ -147,7 +147,7 @@ To manually specify which D1 database to take, you can specify it explicitly:
|
||||
import { serve, d1 } from "bknd/adapter/cloudflare";
|
||||
|
||||
export default serve<Env>({
|
||||
app: ({ env }) => d1({ binding: env.D1_BINDING }),
|
||||
app: (env) => d1({ binding: env.D1_BINDING }),
|
||||
});
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user