立即迁移到 Netlify

Netlify 宣布 Gatsby Cloud 的下一次迭代。 了解更多

联系我们注册
社区插件
在 GitHub 上查看插件

gatsby-plugin-vercel

此插件将 核心 Web Vitals 发送到 Vercel Analytics。此插件在 Vercel 上是默认配置的。您无需手动安装它。有关更多信息,请阅读此帖

安装

npm i gatsby-plugin-vercel

yarn add gatsby-plugin-vercel

用法

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

灵感来源

©2025Gatsby, Inc.