Skip to content

Commit

Permalink
Merge branch 'main' into add-support-for-server-side-props
Browse files Browse the repository at this point in the history
  • Loading branch information
schehata committed Jan 27, 2023
2 parents d516b90 + 28fd9dd commit a64107b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Expand Up @@ -65,6 +65,8 @@ module.exports = withAxiom({

### Web Vitals

:warning: Web-Vitals are not yet supported in Next.js 13 and above. Please use Next.js 12 or below.

Go to `pages/_app.js` or `pages/_app.ts` and add the following line to report web vitals:

```js
Expand All @@ -76,6 +78,8 @@ export { reportWebVitals } from 'next-axiom';
Wrapping your handlers in `withAxiom` will make `req.log` available and log
exceptions:

:warning: Nextjs 13.x server side components are not yet supported.

```ts
import { withAxiom, AxiomAPIRequest } from 'next-axiom';

Expand Down

0 comments on commit a64107b

Please sign in to comment.