Skip to content

Commit 5c35fd5

Browse files
committed
chore: update demos
1 parent 7b92076 commit 5c35fd5

File tree

4 files changed

+19
-13
lines changed

4 files changed

+19
-13
lines changed

demos/middleware/README.md

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
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).
1+
This is a [Next.js](https://nextjs.org/) project bootstrapped with
2+
[`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
23

34
## Getting Started
45

@@ -14,15 +15,15 @@ Open [http://localhost:3000](http://localhost:3000) with your browser to see the
1415

1516
You can start editing the page by modifying `pages/index.js`. The page auto-updates as you edit the file.
1617

17-
[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`.
18+
[API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on
19+
[http://localhost:3000/api/hello](http://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.js`.
1820

19-
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.
21+
The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as
22+
[API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages.
2023

2124
## Learn More
2225

2326
To learn more about Next.js, take a look at the following resources:
2427

2528
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
2629
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
27-
28-
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!

demos/middleware/public/vercel.svg

-4
This file was deleted.

demos/server-components/README.md

+10-4
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,26 @@
11
# Next.js 12 React Server Components Demo (Alpha)
22

3-
Try the demo live here: [**next-rsc-hn.vercel.app**](https://next-rsc-hn.vercel.app).
3+
Try the demo live here: [**https://next-plugin-rsc-demo.netlify.app**](https://next-plugin-rsc-demo.netlify.app).
44

55
## Introduction
66

7-
This is a demo app of the Hacker News website clone, which shows Next.js 12's experimental React Server Components support. We recommend you taking a look at these links, before trying out the experimental feature:
7+
This is a demo app of the Hacker News website clone, which shows Next.js 12's experimental React Server Components
8+
support. We recommend you taking a look at these links, before trying out the experimental feature:
89

910
- [**Introducing Zero-Bundle-Size React Server Components**](https://reactjs.org/blog/2020/12/21/data-fetching-with-react-server-components.html)
1011
- [**Everything About React Server Components**](https://vercel.com/blog/everything-about-react-server-components)
1112
- [**Docs of React Server Components in Next.js**](https://nextjs.org/docs/advanced-features/react-18#react-server-components)
1213

13-
This demo is built for showing what features that Server Components provide and what the application structure might look like. **It's not ready for production adoption, or performance benchmarking** as the underlying APIs are not stable yet, and might change or be improved in the future.
14+
This demo is built for showing what features that Server Components provide and what the application structure might
15+
look like. **It's not ready for production adoption, or performance benchmarking** as the underlying APIs are not stable
16+
yet, and might change or be improved in the future.
1417

1518
## Technical Details
1619

17-
This Next.js application uses React 18 (RC build) and the new [Edge Runtime](https://nextjs.org/docs/api-reference/edge-runtime). It has `runtime` set to `'edge'` and feature flag `serverComponents` enabled. You can check out [next.config.js](https://github.com/vercel/next-react-server-components/blob/main/next.config.js) for more details.
20+
This Next.js application uses React 18 (RC build) and the new
21+
[Edge Runtime](https://nextjs.org/docs/api-reference/edge-runtime). It has `runtime` set to `'edge'` and feature flag
22+
`serverComponents` enabled. You can check out
23+
[next.config.js](https://github.com/vercel/next-react-server-components/blob/main/next.config.js) for more details.
1824

1925
### Running Locally
2026

demos/server-components/netlify.toml

+3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
command = "npm run build"
33
publish = ".next"
44

5+
[environment]
6+
NEXT_USE_NETLIFY_EDGE = "true"
7+
58
[[plugins]]
69
package = "../plugin-wrapper/"
710

0 commit comments

Comments
 (0)