0.4.0 • Published 3 years ago

@axiomhq/vercel-next v0.4.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

@axiomhq/vercel-next CI

npm.io

Send Web-Vitals from Vercel to Axiom.

Get started

  1. Make sure you have the Axiom Vercel integration installed
  2. In your Vercel project, run npm install --save @axiomhq/vercel-next
  3. Wrap your NextJS config in withAxiomProxy like this in next.config.js:
const { withAxiomProxy } = require('@axiomhq/vercel-next');

module.exports = withAxiomProxy({
  // ... your existing config
})

This will proxy the Axiom ingest call to improve deliverability.

  1. Go to pages/_app.js or pages/_app.ts and add the following line:
export { reportWebVitals } from '@axiomhq/vercel-next';
  1. Deploy your site and watch data coming into your Axiom dashboard
0.3.0

3 years ago

0.4.0

3 years ago

0.2.0

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago