Skip to content

Commit 763b65d

Browse files
Oxyjunmaheshwarip
authored andcommitted
Removing inconsistent BINDING_NAME in the tutorial (#17206)
1 parent 15e7c10 commit 763b65d

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

src/content/docs/kv/get-started.mdx

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -124,11 +124,11 @@ To create a KV namespace via Wrangler:
124124
For this tutorial, use the binding name `BINDING_NAME`.
125125

126126
```sh
127-
npx wrangler kv namespace create kv_binding_name
127+
npx wrangler kv namespace create BINDING_NAME
128128
```
129129

130130
```sh output
131-
🌀 Creating namespace with title kv-tutorial-kv_binding_name
131+
🌀 Creating namespace with title kv-tutorial-BINDING_NAME
132132
✨ Success!
133133
Add the following to your configuration file:
134134
[[kv_namespaces]]
@@ -142,9 +142,6 @@ To create a KV namespace via Wrangler:
142142

143143
<Steps>
144144
1. Go to [**Storage & Databases** > **KV**](https://dash.cloudflare.com/?to=/:account/workers/kv/namespaces).
145-
146-
147-
148145
2. Select **Create a namespace**.
149146
3. Enter a name for your namespace. For this tutorial, use `kv_tutorial_namespace`.
150147
4. Select **Add**.
@@ -197,7 +194,7 @@ Refer to [Environment](/kv/reference/environments/) for more information.
197194
4. Scroll to **Bindings**, then select **Add**.
198195
5. Select **KV namespace**.
199196
6. Name your binding (`BINDING_NAME`) in **Variable name**, then select the KV namespace (`kv_tutorial_namespace`) you created in [step 2](/kv/get-started/#2-create-a-kv-namespace) from the dropdown menu.
200-
7. Select **Deploy** to deploy your binding.
197+
7. Select **Deploy** to deploy your binding.
201198
</Steps>
202199
</TabItem></Tabs>
203200

@@ -390,7 +387,7 @@ The browser should simply return the `VALUE` corresponding to the `KEY` you have
390387
1. Go to **Workers & Pages** > **Overview**.
391388
2. Go to the `kv-tutorial` Worker you created.
392389
3. Select **Edit Code**.
393-
4. Clear the contents of the `workers.js` file, then paste the following code. Replace the `BINDING_NAME` with your binding name.
390+
4. Clear the contents of the `workers.js` file, then paste the following code.
394391

395392
```js
396393
export default {
@@ -412,8 +409,6 @@ The browser should simply return the `VALUE` corresponding to the `KEY` you have
412409
};
413410
```
414411

415-
For this tutorial, your `BINDING_NAME` should be `kv_binding_name`.
416-
417412
The code above:
418413

419414
1. Writes a key to `BINDING_NAME` using KV's `put()` method.

0 commit comments

Comments
 (0)