Skip to content

Commit a00077e

Browse files
committed
added changes for sentry
1 parent 569c60c commit a00077e

File tree

3 files changed

+8006
-4965
lines changed

3 files changed

+8006
-4965
lines changed

gatsby-config.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,15 @@ module.exports = {
1212
display: `minimal-ui`,
1313
icon: `src/static/ap-icon.png` // This path is relative to the root of the site.
1414
}
15+
},
16+
{
17+
resolve: "gatsby-plugin-sentry",
18+
options: {
19+
dsn: "https://[email protected]/5427444",
20+
// Optional settings, see https://docs.sentry.io/clients/node/config/#optional-settings
21+
environment: process.env.NODE_ENV,
22+
enabled: (() => ["production", "stage"].indexOf(process.env.NODE_ENV) !== -1)()
23+
}
1524
}
1625
]
1726
};

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"@fortawesome/react-fontawesome": "^0.1.4",
1717
"gatsby": "^2.4.0",
1818
"gatsby-plugin-manifest": "^2.3.3",
19+
"gatsby-plugin-sentry": "^1.0.1",
1920
"react": "^16.8.6",
2021
"react-dom": "^16.8.6",
2122
"react-markdown": "^4.1.0"

0 commit comments

Comments
 (0)