Have you run through the code and getting started guide at https://developers.cloudflare.com/kv/get-
Have you run through the code and getting started guide at https://developers.cloudflare.com/kv/get-started/ ? - your code here is very different
env.XYZ in code but now it is an array which can't be interacted with. Any help is appreciated! Happy to paste some of the toml and what not if that would be helpful!kv_namespaces = [ below [vars]env.dev.vars.
<!DOCTYPE html>
<html>
<head>
<title>Quick Quotes</title>
<link rel="stylesheet" type="text/css" href="/css/styles.css">
</head>
<body>
<div class="container">
<h2>Quick Quotes</h2>
<form id="quoteForm">
<label for="User">Name:</label>
<input type="text" id="name" name="User" placeholder="Enter your name">
<label for="Quote">Quote:</label>
<textarea id="quote" name="Quote" placeholder="Enter your quote"></textarea>
<button type="button" onclick="submitForm()">Submit</button>
</form>
<div id="quotesContainer">
</div>
</div>
</body>
</html>Vars:
...
- kv-namespaces: [
{
"binding": "XYZ",
"id": "ASDF"
}
]env.XYZkv_namespaces = [[vars][env.dev]
kv_namespaces = [
{ binding = "XYZ", id="ASDF" }
]
vars = { DISCORD_TOKEN = "WER", DISCORD_PUBLIC_KEY = "GFD", DISCORD_APPLICATION_ID = "ASFD" }env.dev.vars