Skip to content

Commit

Permalink
docs: updated FAQs and README with app router examples (newrelic#192)
Browse files Browse the repository at this point in the history
  • Loading branch information
bizob2828 authored May 3, 2024
1 parent b1d0497 commit 34816c9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
4 changes: 2 additions & 2 deletions merged/nextjs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ npm run versioned

The following example applications show how to load the `@newrelic/next` instrumentation, inject browser agent, and handle errors:

* [Pages Router example](https://github.com/newrelic/newrelic-node-examples/tree/main/nextjs-legacy)
* App Router example: coming soon!
* [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)

## Support

Expand Down
11 changes: 4 additions & 7 deletions merged/nextjs/docs/faqs/browser-agent.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,8 @@ Q: How can I inject the [New Relic Browser Agent](https://docs.newrelic.com/docs
A: It depends on if you are using the Pages or App Router for Next.js.


## Inject Browser Agent with Pages Router
## Inject Browser Agent
The following links demonstrates how to inject the browser agent.

This [Pages Router](https://github.com/newrelic/newrelic-node-examples/blob/e118117470ae9f9038c60d8a171a6f0d440f6291/nextjs-legacy/pages/_document.jsx) example app demonstrates how to inject the browser agent.


## Inject Browser Agent with App Router

An example application with this process is coming soon!
* [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)
1 change: 0 additions & 1 deletion merged/nextjs/docs/faqs/error-handling.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,5 @@ The error page varies between [Pages Router](https://nextjs.org/docs/pages/build


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


0 comments on commit 34816c9

Please sign in to comment.