Skip to content

Commit 823b911

Browse files
authored
docs(cloudflare): add missing await (#2601)
1 parent b5bdb2f commit 823b911

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/2.deploy/20.providers/cloudflare.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ For more details on Bindings and how to use them please refer to the Cloudflare
255255
In runtime, you can access bindings from the request event, by accessing its `context.cloudflare.env` field, this is for example how you can access a D1 bindings:
256256

257257
```ts
258-
defineEventHandler((event) => {
258+
defineEventHandler(async (event) => {
259259
const { cloudflare } = event.context
260260
const stmt = await cloudflare.env.MY_D1.prepare('SELECT id FROM table')
261261
const { results } = await stmt.all()

0 commit comments

Comments
 (0)