Skip to content

Commit

Permalink
Merge pull request #105 from axiomhq/islam/dx-454-add-notice-for-next…
Browse files Browse the repository at this point in the history
…js-13-users-to-next

add notes about nextjs 13.x unsupported features
  • Loading branch information
schehata committed Jan 26, 2023
2 parents 4355540 + a67f7b9 commit 28fd9dd
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

1 comment on commit 28fd9dd

@vercel
Copy link

@vercel vercel bot commented on 28fd9dd Jan 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

next-axiom-example – ./

next-axiom-example-git-main.axiom.dev
next-axiom-example.axiom.dev
next-axiom-example-lemon.vercel.app

Please sign in to comment.