Skip to content

Commit d2f749c

Browse files
authored
fix npx commands (#200)
1 parent 83d0b01 commit d2f749c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

pages/cloudflare/howtos/dev-deploy.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,5 +74,5 @@ You can then connect your GitHub repository by following [the documentation](htt
7474

7575
In the Build settings:
7676

77-
- The "Build command" should be set to `npx opennextjs-cloudflare build`.
78-
- The "Deploy command" should be set to `npx opennextjs-cloudflare deploy` (or `upload` to use gradual deployments).
77+
- The "Build command" should be set to `npx @opennextjs/cloudflare build`.
78+
- The "Deploy command" should be set to `npx @opennextjs/cloudflare deploy` (or `upload` to use gradual deployments).

pages/cloudflare/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ We welcome both contributions and feedback!
5757

5858
The OpenNext Cloudflare adapter works by taking the Next.js build output and transforming it, so that it can run in Cloudflare Workers.
5959

60-
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.
60+
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.
6161

6262
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.
6363

pages/cloudflare/troubleshooting.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ When deploying your Worker, `wrangler` will show both the original and compresse
1212

1313
If your Worker is larger than 10 MiB compressed — there might be unnecessary code ending up in your production bundle. You can visualize and understand this by running:
1414

15-
1. `npx opennextjs-cloudflare build` within your project's root directory
15+
1. `npx @opennextjs/cloudflare build` within your project's root directory
1616
2. `cd .open-next/server-functions/default` to open the directory that contains the bundled code
1717
3. Take the file named `handler.mjs.meta.json` and use the [ESBuild Bundle Analyzer](https://esbuild.github.io/analyze/) to visualize your application's code, and understand the largest parts of your production bundle
1818

0 commit comments

Comments
 (0)