Skip to content

Commit c7b366d

Browse files
authored
Fixed deploy command (#18443)
1 parent 6ed8bac commit c7b366d

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ Add the following to the scripts field of your `package.json` file:
9595
- `npm run build:worker`: Runs the [@opennextjs/cloudflare](https://www.npmjs.com/package/@opennextjs/cloudflare) adapter. This first builds your app by running `next build` behind the scenes, and then transforms the build output to a format that you can run locally using [Wrangler](/workers/wrangler/) and deploy to Cloudflare.
9696
- `npm run dev:worker`: Takes the output generated by `build:worker` and runs it locally in [workerd](https://github.com/cloudflare/workerd), the open-source Workers Runtime, allowing you to run the app locally in the same environment that it will run in production. If you instead run `next dev`, your app will run in Node.js, which is a different JavaScript runtime from the Workers runtime, with differences in behavior and APIs.
9797
- `npm run preview:worker`: Runs `build:worker` and then `dev:worker`, allowing you to quickly preview your app running locally in the Workers runtime, via a single command.
98-
- `npm run deploy`: Builds your app, and then deploys it to Cloudflare
98+
- `npm run deploy:worker`: Builds your app, and then deploys it to Cloudflare
9999

100100
### 4. Add caching with Workers KV
101101

@@ -138,7 +138,7 @@ In step 3, we also added the `npm run preview:worker`, which allows you to quick
138138
Either deploy via the command line:
139139

140140
```sh
141-
npm run deploy
141+
npm run deploy:worker
142142
```
143143

144144
Or [connect a GitHub or GitLab repository](/workers/ci-cd/), and Cloudflare will automatically build and deploy each pull request you merge to your production branch.

0 commit comments

Comments
 (0)