Skip to content

Commit

Permalink
Track JS errors on gatsbyjs.org with Sentry (gatsbyjs#14492)
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleAMathews authored Jun 2, 2019
1 parent 8291589 commit b20a7ed
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
2 changes: 0 additions & 2 deletions docs/starters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2718,8 +2718,6 @@
- Styling with SCSS
- Offline support
- Web App Manifest
- url: https://gatsby-starter-material-business-markdown.netlify.com/
repo: https://github.com/ANOUN/gatsby-starter-material-business-markdown/
- url: https://gatsby-starter-anoun-1-markdown.netlify.com/
repo: https://github.com/ANOUN/gatsby-starter-anoun-1-markdown
description: A clean, modern starter for businesses using Material Design Components
Expand Down
12 changes: 12 additions & 0 deletions www/gatsby-config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const path = require(`path`)
const git = require(`git-rev-sync`)
require(`dotenv`).config({
path: `.env.${process.env.NODE_ENV}`,
})
Expand Down Expand Up @@ -214,6 +215,7 @@ module.exports = {
{
allMdx(
sort: { order: DESC, fields: [frontmatter___date] }
limit: 10,
filter: {
frontmatter: { draft: { ne: true } }
fileAbsolutePath: { regex: "/docs.blog/" }
Expand Down Expand Up @@ -282,6 +284,16 @@ module.exports = {
nodeTypes: [`StartersYaml`],
},
},
{
resolve: `gatsby-plugin-sentry`,
options: {
dsn: `https://[email protected]/1471074`,
release: git.long(),
environment: process.env.NODE_ENV,
enabled: (() =>
[`production`, `stage`].indexOf(process.env.NODE_ENV) !== -1)(),
},
},
// `gatsby-plugin-subfont`,
].concat(dynamicPlugins),
}
2 changes: 2 additions & 0 deletions www/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"gatsby-plugin-nprogress": "^2.0.5",
"gatsby-plugin-offline": "^2.0.22",
"gatsby-plugin-react-helmet": "^3.0.0",
"gatsby-plugin-sentry": "^1.0.1",
"gatsby-plugin-sharp": "^2.0.5",
"gatsby-plugin-sitemap": "^2.0.1",
"gatsby-plugin-twitter": "^2.0.5",
Expand All @@ -57,6 +58,7 @@
"gatsby-transformer-screenshot": "^2.0.4",
"gatsby-transformer-sharp": "^2.1.1",
"gatsby-transformer-yaml": "^2.1.1",
"git-rev-sync": "^1.12.0",
"graphql-request": "1.6.0",
"gray-percentage": "^2.0.0",
"hex2rgba": "^0.0.1",
Expand Down

0 comments on commit b20a7ed

Please sign in to comment.