diff --git a/merged/nextjs/README.md b/merged/nextjs/README.md index 2366b17ff3..f8a8edf14a 100644 --- a/merged/nextjs/README.md +++ b/merged/nextjs/README.md @@ -65,9 +65,9 @@ export async function getServerSideProps() { const newrelic = require('newrelic') const browserTimingHeader = newrelic.getBrowserTimingHeader() return { - props: { - browserTimingHeader - } + props: { + browserTimingHeader + } } } @@ -91,6 +91,8 @@ export default function Home({ browserTimingHeader }) { + ) +} ``` For static compiled pages, you can use the [copy-paste method](https://docs.newrelic.com/docs/browser/browser-monitoring/installation/install-browser-monitoring-agent/#copy-paste-app) for enabling the New Relic Browser agent. diff --git a/merged/nextjs/docs/inject-browser-agent.md b/merged/nextjs/docs/inject-browser-agent.md index 06ae5635c2..db11f48607 100644 --- a/merged/nextjs/docs/inject-browser-agent.md +++ b/merged/nextjs/docs/inject-browser-agent.md @@ -17,9 +17,9 @@ export async function getServerSideProps() { const newrelic = require('newrelic') const browserTimingHeader = newrelic.getBrowserTimingHeader() return { - props: { - browserTimingHeader - } + props: { + browserTimingHeader + } } } @@ -43,7 +43,8 @@ export default function Home({ browserTimingHeader }) { - + ) +} ``` For static compiled pages, you can use the [copy-paste method](https://docs.newrelic.com/docs/browser/browser-monitoring/installation/install-browser-monitoring-agent/#copy-paste-app) for enabling the New Relic Browser agent.