Skip to content

Commit 30eb29c

Browse files
Oxyjunmaheshwarip
authored andcommitted
[DO, KV] Unifying prerequisites in Get started page (#16885)
* Updating partial file for Workers prereq.mdx, cleaning up DO Get started. * Using partial for KV's prereq.
1 parent 9f1c851 commit 30eb29c

File tree

3 files changed

+5
-11
lines changed

3 files changed

+5
-11
lines changed

src/content/docs/durable-objects/get-started.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ This guide will instruct you through:
1313
- Instantiating and communicating with a Durable Object from another Worker via the `Fetch` API.
1414
- Deploying a Durable Object.
1515

16+
## Prerequisites
17+
1618
<Render file="prereqs" product="workers" />
1719

1820
## 1. Enable Durable Objects in the dashboard

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

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,7 @@ This guide instructs you through:
1717

1818
## Prerequisites
1919

20-
To continue:
21-
22-
<Steps>
23-
1. Sign up for a [Cloudflare account](https://dash.cloudflare.com/sign-up/workers-and-pages) if you have not already.
24-
2. Install [`Node.js`](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm). Use a Node version manager like [Volta](https://volta.sh/) or [nvm](https://github.com/nvm-sh/nvm) to avoid permission issues and change Node.js versions. [Wrangler](/workers/wrangler/install-and-update/) requires a Node version of `16.13.0` or later.
25-
3. Update your [Wrangler](/workers/wrangler/install-and-update/) installation to the most updated version.
26-
</Steps>
20+
<Render file="prereqs" product="workers" />
2721

2822
## 1. Create a Worker project
2923

src/content/partials/workers/prereqs.mdx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,8 @@
66
import { Details } from "~/components"
77

88
1. Sign up for a [Cloudflare account](https://dash.cloudflare.com/sign-up/workers-and-pages).
9-
2. Install [`npm`](https://docs.npmjs.com/getting-started).
10-
3. Install [`Node.js`](https://nodejs.org/en/).
11-
9+
2. Install [`Node.js`](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm).
1210

1311
<Details header="Node.js version manager">
14-
Use a Node version manager like [Volta](https://volta.sh/) or [nvm](https://github.com/nvm-sh/nvm) to avoid permission issues and change Node.js versions. [Wrangler](/workers/wrangler/install-and-update/), discussed later in this guide, requires a Node version of `16.17.0` or later.
12+
Use a Node version manager like [Volta](https://volta.sh/) or [nvm](https://github.com/nvm-sh/nvm) to avoid permission issues and change Node.js versions. [Wrangler](/workers/wrangler/install-and-update/), discussed later in this guide, requires a Node version of `16.17.0` or later.
1513
</Details>

0 commit comments

Comments
 (0)