but when i write new data with put() it also writes on dashboard's namespace
but when i write new data with put() it also writes on dashboard's namespace
wrangler dev --remote before? Then the code runs in a CF datacenter and has access to the remote KV store.
--remote or press l in your wrangler terminal window to switch between modes (indicated at the bottom)

Currently, mTLS for Workers cannot be used for requests made to a service that is a proxied zone on Cloudflare. If your Worker presents a client certificate to a service proxied by Cloudflare, Cloudflare will return a 520 error.
Response used mTLS?wrangler.toml:waitUntil expects a Promisevoid is fine, but you don't have anything to await there so it'll just kill the fetch
lconst ip = request.headers.get("CF-Connecting-IP");kv_namespaces = [
{ binding = "<YOUR_BINDING>", id = "<YOUR_ID>", preview_id = "<YOUR_ID>" }
]if (env.MY_CERT) {
globalThis.fetch = env.MY_CERT.fetch.bind(env.MY_CERT);
}export default {
async scheduled(event, env, ctx) {
ctx.waitUntil(task());
},
};
function task() {
fetch(
'https://canary.discord.com/api/webhooks/:id/:token',
{
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({
content: 'test',
}),
}
);
}name = ...
main = ...
compatibility_date = ...
[triggers]
crons = [ "* * * * *" ]