docs: corrected app function parameter signature

This commit is contained in:
dswbx
2025-09-15 14:36:00 +02:00
parent c11dd2bd9e
commit ddfc3e599f
3 changed files with 7 additions and 7 deletions
@@ -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 }),
});
```