Skip to content

Commit

Permalink
Merge pull request #43 from newrelic/fix-snippet-syntax
Browse files Browse the repository at this point in the history
fixed syntax of code snippets
  • Loading branch information
michaelgoin authored Mar 1, 2022
2 parents 4ab57dd + 381a512 commit 44ba424
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
8 changes: 5 additions & 3 deletions merged/nextjs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ export async function getServerSideProps() {
const newrelic = require('newrelic')
const browserTimingHeader = newrelic.getBrowserTimingHeader()
return {
props: {
browserTimingHeader
}
props: {
browserTimingHeader
}
}
}

Expand All @@ -91,6 +91,8 @@ export default function Home({ browserTimingHeader }) {
</div>
</section>
</Layout>
)
}
```

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.
Expand Down
9 changes: 5 additions & 4 deletions merged/nextjs/docs/inject-browser-agent.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ export async function getServerSideProps() {
const newrelic = require('newrelic')
const browserTimingHeader = newrelic.getBrowserTimingHeader()
return {
props: {
browserTimingHeader
}
props: {
browserTimingHeader
}
}
}

Expand All @@ -43,7 +43,8 @@ export default function Home({ browserTimingHeader }) {
</div>
</section>
</Layout>

)
}
```

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.

0 comments on commit 44ba424

Please sign in to comment.