Skip to content

Commit

Permalink
Merge pull request #18 from jasonsilberman/patch-1
Browse files Browse the repository at this point in the history
Fix small little typo around package.json CLI commands on Get Started page
  • Loading branch information
dario-piotrowicz authored Oct 1, 2024
2 parents af5a4d6 + 1e423bb commit 8e0693b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/cloudflare/get-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Add the following to the scripts field of your `package.json` file:

- `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](https://developers.cloudflare.com/workers/wrangler/), and deploy to Cloudflare.
- `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.
- `npm run preview:worker`: Runs `build:worker` and then `preview:worker`, allowing you to quickly preview your app running locally in the Workers runtime, via a single command.
- `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.
- `npm run deploy`: Builds your app, and then deploys it to Cloudflare

### 4. Add caching with Workers KV
Expand Down

0 comments on commit 8e0693b

Please sign in to comment.