Skip to content

Commit 73f1121

Browse files
irvinebroquemaheshwarip
authored andcommitted
Fix heading sizes in Next.js docs (#17250)
1 parent b1a1735 commit 73f1121

File tree

1 file changed

+9
-9
lines changed
  • src/content/docs/workers/frameworks/framework-guides

1 file changed

+9
-9
lines changed

src/content/docs/workers/frameworks/framework-guides/nextjs.mdx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {
1313
PackageManagers,
1414
} from "~/components";
1515

16-
#### New apps
16+
## New apps
1717

1818
To create a new Next.js app, pre-configured to run on Cloudflare using [`@opennextjs/cloudflare`](https://opennext.js.org/cloudflare), run:
1919

@@ -32,23 +32,23 @@ To create a new Next.js app, pre-configured to run on Cloudflare using [`@openne
3232
}}
3333
/>
3434

35-
#### Existing Next.js apps
35+
## Existing Next.js apps
3636

3737
:::note[Minimum required Wrangler version: 3.78.10.]
3838

3939
Check your version by running `wrangler version`. To update Wrangler, refer to [Install/Update Wrangler](/workers/wrangler/install-and-update/).
4040

4141
:::
4242

43-
##### 1. Install @opennextjs/cloudflare
43+
### 1. Install @opennextjs/cloudflare
4444

4545
First, install [@opennextjs/cloudflare](https://www.npmjs.com/package/@opennextjs/cloudflare):
4646

4747
```sh
4848
npm install --save-dev @opennextjs/cloudflare
4949
```
5050

51-
##### 2. Add a `wrangler.toml` file
51+
### 2. Add a `wrangler.toml` file
5252

5353
Then, add a [`wrangler.toml`](/workers/wrangler/configuration/) file to the root directory of your Next.js app:
5454

@@ -66,7 +66,7 @@ As shown above, you must enable the [`nodejs_compat` compatibility flag](/worker
6666

6767
`wrangler.toml` is where you configure your Worker and define what resources it can access via [bindings](/workers/runtime-apis/bindings/).
6868

69-
##### 3. Update `package.json`
69+
### 3. Update `package.json`
7070

7171
Add the following to the scripts field of your `package.json` file:
7272

@@ -88,13 +88,13 @@ Add the following to the scripts field of your `package.json` file:
8888

8989
To enable caching, you must:
9090

91-
##### Create a KV namespace
91+
#### Create a KV namespace
9292

9393
```sh
9494
npx wrangler@latest kv namespace create NEXT_CACHE_WORKERS_KV
9595
```
9696

97-
##### Add the KV namespace to your Worker
97+
#### Add the KV namespace to your Worker
9898

9999
```toml
100100
[[kv_namespaces]]
@@ -106,13 +106,13 @@ id = "<YOUR_NAMESPACE_ID>"
106106

107107
As shown above, the name of the binding that you configure for the KV namespace must be set to `NEXT_CACHE_WORKERS_KV`.
108108

109-
##### 5. Develop locally
109+
### 5. Develop locally
110110

111111
You can continue to run `next dev` when developing locally.
112112

113113
In step 3, we also added the `npm run preview:worker`, which allows you to quickly preview your app running locally in the Workers runtime, rather than in Node.js. This allows you to test changes in the same runtime that your app runs in, when deployed to Cloudflare.
114114

115-
##### 6. Deploy to Cloudflare Workers
115+
### 6. Deploy to Cloudflare Workers
116116

117117
Either deploy via the command line:
118118

0 commit comments

Comments
 (0)