Skip to content

Commit

Permalink
chore: update bindings docs (cloudflare#627)
Browse files Browse the repository at this point in the history
  • Loading branch information
arm-learning authored Jan 10, 2024
1 parent 1e516e3 commit 8e93067
Showing 1 changed file with 20 additions and 18 deletions.
38 changes: 20 additions & 18 deletions internal-packages/next-dev/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,26 +32,28 @@ if (process.env.NODE_ENV === 'development') {

// we call the utility with the bindings we want to have access to
setupDevBindings({
MY_KV_1: {
type: 'kv',
id: 'MY_KV_1',
},
MY_KV_2: {
type: 'kv',
id: 'MY_KV_2',
},
MY_DO: {
type: 'durable-object',
service: {
name: 'do-worker',
bindings: {
MY_KV_1: {
type: 'kv',
id: 'MY_KV_1',
},
className: 'DurableObjectClass',
},
MY_R2: {
type: 'r2',
bucketName: 'MY_R2',
MY_KV_2: {
type: 'kv',
id: 'MY_KV_2',
},
MY_DO: {
type: 'durable-object',
service: {
name: 'do-worker',
},
className: 'DurableObjectClass',
},
MY_R2: {
type: 'r2',
bucketName: 'MY_R2',
},
// ...
},
// ...
});
}
```
Expand Down

0 comments on commit 8e93067

Please sign in to comment.