1.0.0 • Published 3 years ago

nuxt-plugin-vercel v1.0.0

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

nuxt-plugin-vercel

This plugin sends Core Web Vitals to Vercel Analytics.

Install

npm i nuxt-plugin-vercel

or

yarn add nuxt-plugin-vercel

Usage

Add nuxt-vitals to the modules section of nuxt.config.js. The Vercel Analytics project ID will be automically added as an environment variable (process.env.VERCEL_ANALYTICS_ID) at build time.

modules: [
  [
    'nuxt-plugin-vercel',
    {
      // Prints metrics in the console when 1
      debug: 0
    }
  ]
]

Inspiration

1.0.0

3 years ago