This package has been deprecated

Author message:

No longer supported, please use next-axiom

@axiomhq/vercel-next
TypeScript icon, indicating that this package has built-in type declarations

0.4.0 • Public • Published

@axiomhq/vercel-next CI

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

Package Sidebar

Install

npm i @axiomhq/vercel-next

Weekly Downloads

2

Version

0.4.0

License

MIT

Unpacked Size

12.6 kB

Total Files

7

Last publish

Collaborators

  • flbn
  • seiflotfy
  • bahlo
  • mhr3
  • lukasmalkmus
  • cdeutsch
  • kevinehosford
  • axiomneil