Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 1.17 KB

README.md

File metadata and controls

36 lines (24 loc) · 1.17 KB

Netlify Sentry plugin    

Automatically generate a Sentry release for your site after it finishes building in Netlify.

Make sure build plugins are enabled on your site to see the plugin run.

Installation

To install, add the following lines to your netlify.toml file:

[[plugins]]
  package = "netlify-plugin-sentry"

Note: The [[plugins]] line is required for each plugin, even if you have other plugins in your netlify.toml file already.

Configuration

Configure the plugin with your sentry settings.

[[plugins]]
  package = "netlify-plugin-sentry"

  [plugins.inputs]
    sentryOrg = ""
    sentryProject = ""
    sentryAuthKey = ""

You can also use site environment variables to configure these values.

  • process.env.SENTRY_ORG - Your Sentry organization name
  • process.env.SENTRY_PROJECT - Your Sentry project name
  • process.env.SENTRY_AUTH_TOKEN - Auth token for Sentry