You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Examples: Updated the example of headers to utilize the App Router (#67920)
This PR updates the headers example to use the App Router. Here are the
changes that have been made:
- Renamed the "pages" folder to the "app" folder.
- Updated the routing for `/`, `/about`, and `/news/[...slug]` files to
align with the App Router.
- Added the layout.tsx file as part of the App Router.
- Updated the `package.json` file.
- Updated the Readme file.
cc @samcx
---------
Co-authored-by: samcx <[email protected]>
Copy file name to clipboardExpand all lines: examples/headers/README.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
1
# Headers Example
2
2
3
-
This example shows how to use [headers in Next.js](https://nextjs.org/docs/api-reference/next.config.js/headers) to add custom HTTP headers into your Next.js app.
3
+
This example shows how to use [headers in Next.js](https://nextjs.org/docs/app/api-reference/next-config-js/headers) to add custom HTTP headers into your Next.js app.
4
4
5
-
The index page ([`pages/index.js`](pages/index.js)) has a list of links to pages with custom headers set up in [`next.config.js`](next.config.js). Run or deploy the app to see how it works!
5
+
The index page ([`app/page.tsx`](app/page.tsx)) has a list of links to pages with custom headers set up in [`next.config.js`](next.config.js). Run or deploy the app to see how it works!
0 commit comments