diff --git a/pages/cloudflare/examples.mdx b/pages/cloudflare/examples.mdx index 22c2ae3..ca3c6bd 100644 --- a/pages/cloudflare/examples.mdx +++ b/pages/cloudflare/examples.mdx @@ -3,7 +3,7 @@ import { Callout } from 'nextra/components'; ## Examples -To create a new Next.js app, pre-configured to run on Cloudflare using @opennextjs/cloudflare, run: +To create a new Next.js app, pre-configured to run on Cloudflare using `@opennextjs/cloudflare`, run: ``` npm create cloudflare@latest -- my-next-app --framework=next --experimental diff --git a/pages/cloudflare/get-started.mdx b/pages/cloudflare/get-started.mdx index 4a3a37a..b93a4b3 100644 --- a/pages/cloudflare/get-started.mdx +++ b/pages/cloudflare/get-started.mdx @@ -5,7 +5,7 @@ import { Callout } from 'nextra/components'; #### New apps -To create a new Next.js app, pre-configured to run on Cloudflare using @opennextjs/cloudflare, run: +To create a new Next.js app, pre-configured to run on Cloudflare using `@opennextjs/cloudflare`, run: ``` npm create cloudflare@latest -- my-next-app --framework=next --experimental diff --git a/pages/cloudflare/index.mdx b/pages/cloudflare/index.mdx index 580a8dc..4156bbd 100644 --- a/pages/cloudflare/index.mdx +++ b/pages/cloudflare/index.mdx @@ -17,7 +17,7 @@ You can also use [`@cloudflare/next-on-pages`](https://www.npmjs.com/package/@cl ##### New apps -To create a new Next.js app, pre-configured to run on Cloudflare using @opennextjs/cloudflare, run: +To create a new Next.js app, pre-configured to run on Cloudflare using `@opennextjs/cloudflare`, run: ``` npm create cloudflare@latest -- my-next-app --framework=next --experimental @@ -63,10 +63,10 @@ We welcome both contributions and feedback! -### How @opennextjs/cloudflare Works +### How `@opennextjs/cloudflare` Works The OpenNext Cloudflare adapter works by taking the Next.js build output and transforming it, so that it can run in Cloudflare Workers. When you add [@opennextjs/cloudflare](https://www.npmjs.com/package/@opennextjs/cloudflare) as a dependency to your Next.js app, and then run `npx opennextjs-cloudflare` the adapter first builds your app by running the `build` script in your `package.json`, and then transforms the build output to a format that you can run locally using [Wrangler](https://developers.cloudflare.com/workers/wrangler/), and deploy to Cloudflare. -You can view the code for @opennextjs/cloudflare [here](https://github.com/opennextjs/opennextjs-cloudflare/blob/main/packages/cloudflare/src) to understand what it does under the hood. +You can view the code for `@opennextjs/cloudflare` [here](https://github.com/opennextjs/opennextjs-cloudflare/blob/main/packages/cloudflare/src) to understand what it does under the hood.