Replies: 1 comment 1 reply
-
This is not Hono matter, so you should not ask this place. But, I think you should set the variables in the Cloudflare Dashboard. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello Community,
I am so far amazed by Hono and Cloudflare Workers but I am still new to it.
I am trying to get my KV working.
I followed this documentation fragment and this but I am probably making some obvious mistake.
Expected behaviour
I would expect my KV variables to show once deployed to production but the response is always an empty object. I can see only the local variables correctly (vars) (if I list:
c.env
) but no SECRETS.My KV bucket contains the following pair:
HELLO => value
The response I am expecting is:
{"message":{ "HELLO": "value" }}
The response I am getting is:
{"message":{}}
wrangler
handler
Also, am I right to assume I cannot plug the KV on my local machine in the way below and expect it to work when executing "yarn dev"?
Beta Was this translation helpful? Give feedback.
All reactions