feat: add axiom web vitals (#1071)

## Description

Added support for Axiom web vitals

https://axiom.co/docs/apps/vercel#web-vitals
This commit is contained in:
David Nguyen
2024-04-03 15:32:34 +08:00
committed by GitHub
parent 58481f66b8
commit d1ffcb00f3
7 changed files with 35 additions and 2 deletions

View File

@ -2,6 +2,7 @@
const fs = require('fs');
const path = require('path');
const { version } = require('./package.json');
const { withAxiom } = require('next-axiom');
const ENV_FILES = ['.env', '.env.local', `.env.${process.env.NODE_ENV || 'development'}`];
@ -91,4 +92,4 @@ const config = {
},
};
module.exports = config;
module.exports = withAxiom(config);