diff options
author | 2023-09-13 20:43:39 -0700 | |
---|---|---|
committer | 2023-09-13 20:43:39 -0700 | |
commit | c99caccdb2e1bb961b13766ec7ebb9907763e364 (patch) | |
tree | cbc65806656c2b2765666e96a168f5613adf9bb4 /docs/guides/ecosystem/nextjs.md | |
parent | 22f14129e5f8e0328b200ce3a8573dbd7c9562c4 (diff) | |
download | bun-c99caccdb2e1bb961b13766ec7ebb9907763e364.tar.gz bun-c99caccdb2e1bb961b13766ec7ebb9907763e364.tar.zst bun-c99caccdb2e1bb961b13766ec7ebb9907763e364.zip |
More docs & helptext cleanup (#5229)
* wip
* Flesh out resolution docs
* Polish
* More
* WIP
* WIP
* WIP
* Document --watch
Diffstat (limited to 'docs/guides/ecosystem/nextjs.md')
-rw-r--r-- | docs/guides/ecosystem/nextjs.md | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/docs/guides/ecosystem/nextjs.md b/docs/guides/ecosystem/nextjs.md index a455eb23e..4d3be8cfc 100644 --- a/docs/guides/ecosystem/nextjs.md +++ b/docs/guides/ecosystem/nextjs.md @@ -3,7 +3,7 @@ name: Build an app with Next.js and Bun --- {% callout %} -Next.js currently relies on Node.js APIs that Bun does not yet implement. The guide below uses Bun to initialize a project and install dependencies, but it uses Node.js to run the dev server. +The Next.js [App Router](https://nextjs.org/docs/app) currently relies on Node.js APIs that Bun does not yet implement. The guide below uses Bun to initialize a project and install dependencies, but it uses Node.js to run the dev server. {% /callout %} --- @@ -23,7 +23,16 @@ Creating a new Next.js app in /path/to/my-app. --- -To start the dev server, run `bun run dev` from the project root. +To start the dev server with Bun, run `bun --bun run dev` from the project root. + +```sh +$ cd my-app +$ bun --bun run dev +``` + +--- + +To run the dev server with Node.js instead, omit `--bun`. ```sh $ cd my-app |