Skip to content

Commit

Permalink
add notes about nextjs 13.x unsupported features
Browse files Browse the repository at this point in the history
  • Loading branch information
schehata committed Jan 26, 2023
1 parent 4355540 commit 3b913ad
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 aren't supported yet 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 3b913ad

Please sign in to comment.