aboutsummaryrefslogtreecommitdiff
path: root/examples/next/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'examples/next/README.md')
-rw-r--r--examples/next/README.md20
1 files changed, 11 insertions, 9 deletions
diff --git a/examples/next/README.md b/examples/next/README.md
index b12f3e33e..cd0b17310 100644
--- a/examples/next/README.md
+++ b/examples/next/README.md
@@ -1,22 +1,24 @@
-This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
+# Next.js with Bun runtime
+
+This is a [Next.js](https://nextjs.org/) project bootstrapped with Bun.
## Getting Started
+### Cloning the repo
+
+```sh
+bun create next ./app
+```
+
First, run the development server:
```bash
-npm run dev
-# or
-yarn dev
+bun dev
```
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
-You can start editing the page by modifying `pages/index.js`. The page auto-updates as you edit the file.
-
-[API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/hello](http://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.js`.
-
-The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages.
+You can start editing the page by modifying `pages/index.tsx`. The page auto-updates as you edit the file.
## Learn More