@zbyfe/zby-sentry-gatsby
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published


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

Dependents (0)

Package Sidebar

Install

npm i @zbyfe/zby-sentry-gatsby

Weekly Downloads

0

Version

0.0.2

License

BSD-3-Clause

Unpacked Size

8.36 kB

Total Files

13

Last publish

Collaborators

  • geng123
  • authen
  • blueguy