Skip to content

Commit f45cb5a

Browse files
n1ckoateselithrar
authored andcommitted
Update nextjs.mdx (#17348)
1 parent 8524dbd commit f45cb5a

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ Add the following to the scripts field of your `package.json` file:
8383

8484
- `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.
8585
- `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.
86-
- `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.
86+
- `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.
8787
- `npm run deploy`: Builds your app, and then deploys it to Cloudflare
8888

8989
### 4. Add caching with Workers KV

0 commit comments

Comments
 (0)