JavaDad
Explore posts from serversCDCloudflare Developers
•Created by JavaDad on 4/15/2024 in #workers-help
Can not enable Log Push
3 replies
CDCloudflare Developers
•Created by JavaDad on 4/28/2023 in #pages-help
Cloudflare Pages Function CORS error
4 replies
CDCloudflare Developers
•Created by JavaDad on 3/1/2023 in #workers-help
Can't Work with Queues and D1 in the same project
Queues will not work when running
wrangler dev
as they are only supported with the --local
command. Unfortunately, D1 does not seem to work correctly locally when using workers-qb as the following error always is thrown when running workers-qb locally but not when running remote.
3 replies
CDCloudflare Developers
•Created by JavaDad on 1/27/2023 in #workers-help
How to bind to services
Hello,
I am new to workers and trying to understand service binding. In the wrangler init TypeScript project there is an environment interface:
What I am trying to understand is where the values
KVNamespace
or R2Bucket
are coming from. In my wranlger.toml I have a binding = "DB"
(in this case D1) but I don't know how to use env.DB
in the code since TypeScript says DB does not exist on type Env
. I understand it needs to be added into the interface but not sure how to reference it there.8 replies