Files
vercel/packages/gatsby-plugin-vercel-analytics/README.md
Ethan Arrowood 9c768b98b7 [tests] Migrate from yarn to pnpm (#9198)
<picture data-single-emoji=":pnpm:" title=":pnpm:"><img class="emoji" src="https://single-emoji.vercel.app/api/emoji/eyJhbGciOiJkaXIiLCJlbmMiOiJBMjU2R0NNIn0..4mJzrO94AnSn0Pue.4apgaKtTUdQ-wxNyahjdJj28u8bbXreLoTA8AGqYjLta3MrsFvbo9DsQFth4CoIkBgXFhQ5_BVcKNfYbwLg4bKzyIvItKe4OFS8AzG7Kkicz2kUUZk0.nXyK_PvHzZFGA-MQB6XHfA" alt=":pnpm:" width="20" height="auto" align="absmiddle"></picture> 

yarn has become increasingly more difficult to use as the v1 we rely on no longer receives updates. pnpm is faster and is actively maintained. 

This PR migrates us to pnpm.
2023-01-11 23:35:13 +00:00

1.2 KiB

@vercel/gatsby-plugin-vercel-analytics


⚠️ This repo was migrated from https://github.com/vercel/gatsby-plugin-vercel

It requires Node.js v12 to be built, so the latest, built version of gatsby-plugin-vercel has been committed to this repo temporarily so that they can be included in the initial v1 publish of @vercel/gatsby-plugin-vercel-analytics.

At some point in the future, this plugin will be updated to Node.js v16 so that it can be included in the rest of this monorepo's build tooling.


This plugin sends Core Web Vitals to Vercel Analytics. This plugin is configured by default on Vercel. You do not need to install it manually. For more information, read this post.

Install

npm i @vercel/gatsby-plugin-vercel-analytics

Usage

// gatsby-config.js
module.exports = {
  plugins: [
    {
      resolve: "@vercel/gatsby-plugin-vercel-analytics",
      options: {
        // (optional) Prints metrics in the console when true
        debug: false,
      },
    },
  ],
};

Inspiration