Skip to content

Commit 4fa71fa

Browse files
authored
minor formatting fix (#17171)
1 parent ec86dd9 commit 4fa71fa

File tree

1 file changed

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

1 file changed

+19
-6
lines changed

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

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,27 @@ import {
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

20-
```sh
21-
npm create cloudflare@latest my-next-app -- --framework=next --experimental
22-
```
20+
<PackageManagers
21+
type="create"
22+
pkg="cloudflare@latest my-next-app"
23+
args={"--framework=next --experimental"}
24+
/>
25+
26+
<Render
27+
file="c3-post-run-steps"
28+
product="workers"
29+
params={{
30+
category: "web-framework",
31+
framework: "Next.js",
32+
}}
33+
/>
2334

2435
#### Existing Next.js apps
2536

26-
:::note
27-
Minimum required Wrangler version: 3.78.10. Check your version by running `wrangler version`. To update Wrangler, refer to [Install/Update Wrangler](/workers/wrangler/install-and-update/).
37+
:::note[Minimum required Wrangler version: 3.78.10.]
38+
39+
Check your version by running `wrangler version`. To update Wrangler, refer to [Install/Update Wrangler](/workers/wrangler/install-and-update/).
40+
2841
:::
2942

3043
##### 1. Install @opennextjs/cloudflare
@@ -48,7 +61,7 @@ experimental_assets = { directory = ".worker-next/assets", binding = "ASSETS" }
4861
```
4962

5063
:::note
51-
As shown above, you must enable the [`nodejs_compat` compatibility flag](/workers/runtime-apis/nodejs/) *and* set your [compatibility date](/workers/configuration/compatibility-dates/) to `2024-09-23` or later for your Next.js app to work with @opennextjs/cloudflare.
64+
As shown above, you must enable the [`nodejs_compat` compatibility flag](/workers/runtime-apis/nodejs/) _and_ set your [compatibility date](/workers/configuration/compatibility-dates/) to `2024-09-23` or later for your Next.js app to work with @opennextjs/cloudflare.
5265
:::
5366

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

0 commit comments

Comments
 (0)