Skip to content

Commit

Permalink
docs: Fixed links to next.js apps (#2812)
Browse files Browse the repository at this point in the history
  • Loading branch information
bizob2828 authored Dec 3, 2024
1 parent fc1fbda commit 834440c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ If you are having trouble getting the `newrelic` package to instrument Next.js,
### Next.js example projects
The following example applications show how to load the `newrelic` instrumentation, inject browser agent, and handle errors:

* [Pages Router example](https://github.com/newrelic/newrelic-node-examples/tree/58f760e828c45d90391bda3f66764d4420ba4990/nextjs-legacy)
* [App Router example](https://github.com/newrelic/newrelic-node-examples/tree/58f760e828c45d90391bda3f66764d4420ba4990/nextjs-app-router)
* [Pages Router example](https://github.com/newrelic/newrelic-node-examples/tree/9415503f3bd78fa5d87a7214596d51c946199474/nextjs/nextjs-legacy)
* [App Router example](https://github.com/newrelic/newrelic-node-examples/tree/9415503f3bd78fa5d87a7214596d51c946199474/nextjs/nextjs-app-router)

### Custom Next.js servers

Expand Down
4 changes: 2 additions & 2 deletions documentation/nextjs/faqs/browser-agent.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ A: It depends on if you are using the Pages or App Router for Next.js.
## Inject Browser Agent
The following links demonstrates how to inject the browser agent.

* [Pages Router](https://github.com/newrelic/newrelic-node-examples/blob/e118117470ae9f9038c60d8a171a6f0d440f6291/nextjs-legacy/pages/_document.jsx)
* [App Router](https://github.com/newrelic/newrelic-node-examples/blob/58f760e828c45d90391bda3f66764d4420ba4990/nextjs-app-router/app/layout.js)
* [Pages Router](https://github.com/newrelic/newrelic-node-examples/blob/9415503f3bd78fa5d87a7214596d51c946199474/nextjs/nextjs-legacy/pages/_document.jsx)
* [App Router](https://github.com/newrelic/newrelic-node-examples/blob/9415503f3bd78fa5d87a7214596d51c946199474/nextjs/nextjs-app-router/app/layout.js)
2 changes: 1 addition & 1 deletion documentation/nextjs/faqs/error-handling.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ A: The Node.js agent has an API to log errors `newrelic.noticeError`. Next.js ha

The error page varies between [Pages Router](https://nextjs.org/docs/pages/building-your-application/routing/custom-error) and [App Router](https://nextjs.org/docs/app/building-your-application/routing/error-handling) Next.js projects.

* [Pages Router](https://github.com/newrelic/newrelic-node-examples/blob/e118117470ae9f9038c60d8a171a6f0d440f6291/nextjs-legacy/pages/_error.jsx) error handling example.
* [Pages Router](https://github.com/newrelic/newrelic-node-examples/blob/9415503f3bd78fa5d87a7214596d51c946199474/nextjs/nextjs-legacy/pages/_error.jsx) error handling example.


0 comments on commit 834440c

Please sign in to comment.