mirror of
https://github.com/LukeHagar/vercel.git
synced 2025-12-09 12:57:46 +00:00
gatsby-plugin-vercel
⚠️ 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 gatsby-plugin-vercel
or
yarn add gatsby-plugin-vercel
Usage
// gatsby-config.js
module.exports = {
plugins: [
{
resolve: "gatsby-plugin-vercel",
options: {
// (optional) Prints metrics in the console when true
debug: false,
},
},
],
};