0.0.2 • Published 4 years ago

@zbyfe/zby-sentry-gatsby v0.0.2

Weekly downloads
-
License
BSD-3-Clause
Repository
github
Last release
4 years ago

Official Sentry SDK for GatsbyJS

Register the package as a plugin in gastby-config.js:

{
  // ...
  plugins: [
    {
      resolve: "@zbyfe/zby-sentry-gatsby",
      options: {
          dsn: process.env.SENTRY_DSN, // this is the default
      }
    },
    // ...
  ]
}

Options will be passed directly to Sentry.init. The environment value defaults to NODE_ENV (or development if not set).

GitHub Actions

The release value is inferred from GITHUB_SHA.

Netlify

The release value is inferred from COMMIT_REF.

Vercel

To automatically capture the release value on Vercel you will need to register appropriate system environment variable (e.g. VERCEL_GITHUB_COMMIT_SHA) in your project.

Links