--- name: Build an app with Next.js and Bun --- {% callout %} 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 %} --- Initialize a Next.js app with `create-next-app`. This automatically installs dependencies using `npm`. ```sh $ bun create next-app ✔ What is your project named? … my-app ✔ Would you like to use TypeScript with this project? … No / Yes ✔ Would you like to use ESLint with this project? … No / Yes ✔ Would you like to use `src/` directory with this project? … No / Yes ✔ Would you like to use experimental `app/` directory with this project? … No / Yes ✔ What import alias would you like configured? … @/* Creating a new Next.js app in /path/to/my-app. ``` --- 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 $ bun run dev ``` --- Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. Any changes you make to `(pages/app)/index.tsx` will be hot-reloaded in the browser. /test/data?h=r2.16.1&follow=1'>logtreecommitdiff
path: root/test/data (unfollow)
AgeCommit message (Expand)AuthorFilesLines
2019-06-26Pet cargo fmtGravatar Tobias Kortkamp 1-1/+1
2019-06-26Unbreak on 32-bit archsGravatar Tobias Kortkamp 2-3/+5
2019-06-26Fix build on FreeBSDGravatar Tobias Kortkamp 4-0/+4
2019-06-25Remove unused German translationGravatar Lysander Trischler 2-7/+2
2019-06-25Translate German messagesGravatar Lysander Trischler 1-14/+12
2019-06-25Prepare changelog for 2.17 releaseGravatar Alexander Batischev 1-0/+11
2019-06-25Update everything for 2.16 releaser2.16Gravatar Alexander Batischev 6-12/+37
2019-06-18Update Catch to 2.9.1Gravatar Alexander Batischev 1-5/+6
2019-06-16Update Catch to 2.9.0Gravatar Alexander Batischev 1-201/+1693
2019-06-09Travis: harden compilation the way Fedora and Ubuntu doGravatar Alexander Batischev 1-1/+4
2019-06-09Fix out-of-bounds access on empty author tag in RSS 0.9xGravatar Alexander Batischev 5-2/+113