From 834440caee017fe632b354d20112c3016587064b Mon Sep 17 00:00:00 2001 From: Bob Evans Date: Tue, 3 Dec 2024 10:24:59 -0500 Subject: [PATCH] docs: Fixed links to next.js apps (#2812) --- README.md | 4 ++-- documentation/nextjs/faqs/browser-agent.md | 4 ++-- documentation/nextjs/faqs/error-handling.md | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 8c43a9145a..8ca105a983 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/documentation/nextjs/faqs/browser-agent.md b/documentation/nextjs/faqs/browser-agent.md index 3e27b24013..10dac518a5 100644 --- a/documentation/nextjs/faqs/browser-agent.md +++ b/documentation/nextjs/faqs/browser-agent.md @@ -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) diff --git a/documentation/nextjs/faqs/error-handling.md b/documentation/nextjs/faqs/error-handling.md index 1132c99bcf..fca5039000 100644 --- a/documentation/nextjs/faqs/error-handling.md +++ b/documentation/nextjs/faqs/error-handling.md @@ -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.