aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSiyong2020-07-20 16:00:36 -0700
committerSiyong2020-07-20 16:00:36 -0700
commite6befcb806266d649a9a8de432e0e7852f55541b (patch)
tree227bc35aabe7c2a8ad607630b54e3ae25e662fa5
parent4de47e04300bbbcfef4a8b6651d947b6d7bb1a2d (diff)
parent58b4c3a34501b995410bd2e21d622247d7a8ae11 (diff)
Merge remote-tracking branch 'refs/remotes/origin/master'
-rw-r--r--gatsby-config.ts11
-rw-r--r--package.json1
-rw-r--r--yarn.lock59
3 files changed, 71 insertions, 0 deletions
diff --git a/gatsby-config.ts b/gatsby-config.ts
index c6ea04e..65fc567 100644
--- a/gatsby-config.ts
+++ b/gatsby-config.ts
@@ -121,6 +121,17 @@ export const plugins = [
// cookieDomain: "example.com",
},
},
+ {
+ resolve: 'gatsby-plugin-sentry',
+ options: {
+ dsn:
+ 'https://2e28bddc353b46e7bead85347a099a04@o423042.ingest.sentry.io/5352677',
+ // Optional settings, see https://docs.sentry.io/clients/node/config/#optional-settings
+ environment: process.env.NODE_ENV,
+ enabled: (() =>
+ ['production', 'stage'].indexOf(process.env.NODE_ENV) !== -1)(),
+ },
+ },
// 'gatsby-plugin-webpack-bundle-analyser-v2',
// this (optional) plugin enables Progressive Web App + Offline functionality
// To learn more, visit: https://gatsby.dev/offline
diff --git a/package.json b/package.json
index fd60cb9..d1cd95f 100644
--- a/package.json
+++ b/package.json
@@ -23,6 +23,7 @@
"gatsby-plugin-offline": "^3.2.13",
"gatsby-plugin-postcss": "^2.3.6",
"gatsby-plugin-react-helmet": "^3.3.6",
+ "gatsby-plugin-sentry": "^1.0.1",
"gatsby-plugin-sharp": "^2.6.14",
"gatsby-plugin-styled-components": "^3.3.10",
"gatsby-remark-autolink-headers": "^2.3.7",
diff --git a/yarn.lock b/yarn.lock
index 8981a62..5064c0e 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -1982,6 +1982,58 @@
prop-types "^15.6.1"
react-lifecycles-compat "^3.0.4"
+"@sentry/browser@latest":
+ version "5.19.2"
+ resolved "https://registry.yarnpkg.com/@sentry/browser/-/browser-5.19.2.tgz#8bad445b8d1efd50e6510bb43b3018b941f6e5cb"
+ integrity sha512-o6Z532n+0N5ANDzgR9GN+Q6CU7zVlIJvBEW234rBiB+ZZj6XwTLS1dD+JexGr8lCo8PeXI2rypKcj1jUGLVW8w==
+ dependencies:
+ "@sentry/core" "5.19.2"
+ "@sentry/types" "5.19.2"
+ "@sentry/utils" "5.19.2"
+ tslib "^1.9.3"
+
+"@sentry/core@5.19.2":
+ version "5.19.2"
+ resolved "https://registry.yarnpkg.com/@sentry/core/-/core-5.19.2.tgz#99a64ef0e55230fc02a083c48fa07ada85de4929"
+ integrity sha512-sfbBsVXpA0WYJUichz5IhvqKD8xJUfQvsszrTsUKa7PQAMAboOmuh6bo8KquaVQnAZyZWZU08UduvlSV3tA7tw==
+ dependencies:
+ "@sentry/hub" "5.19.2"
+ "@sentry/minimal" "5.19.2"
+ "@sentry/types" "5.19.2"
+ "@sentry/utils" "5.19.2"
+ tslib "^1.9.3"
+
+"@sentry/hub@5.19.2":
+ version "5.19.2"
+ resolved "https://registry.yarnpkg.com/@sentry/hub/-/hub-5.19.2.tgz#ab7f3d2d253c3441b2833a530b17c6de2418b2c7"
+ integrity sha512-2KkEYX4q9TDCOiaVEo2kQ1W0IXyZxJxZtIjDdFQyes9T4ubYlKHAbvCjTxHSQv37lDO4t7sOIApWG9rlkHzlEA==
+ dependencies:
+ "@sentry/types" "5.19.2"
+ "@sentry/utils" "5.19.2"
+ tslib "^1.9.3"
+
+"@sentry/minimal@5.19.2":
+ version "5.19.2"
+ resolved "https://registry.yarnpkg.com/@sentry/minimal/-/minimal-5.19.2.tgz#0fc2fdf9911a0cb31b52f7ccad061b74785724a3"
+ integrity sha512-rApEOkjy+ZmkeqEItgFvUFxe5l+dht9AumuUzq74pWp+HJqxxv9IVTusKppBsE1adjtmyhwK4O3Wr8qyc75xlw==
+ dependencies:
+ "@sentry/hub" "5.19.2"
+ "@sentry/types" "5.19.2"
+ tslib "^1.9.3"
+
+"@sentry/types@5.19.2":
+ version "5.19.2"
+ resolved "https://registry.yarnpkg.com/@sentry/types/-/types-5.19.2.tgz#ead586f0b64b91c396d3521b938ca25f7b59d655"
+ integrity sha512-O6zkW8oM1qK5Uma9+B/UMlmlm9/gkw9MooqycWuEhIaKfDBj/yVbwb/UTiJmNkGc5VJQo0v1uXUZZQt6/Xq1GA==
+
+"@sentry/utils@5.19.2":
+ version "5.19.2"
+ resolved "https://registry.yarnpkg.com/@sentry/utils/-/utils-5.19.2.tgz#f2819d9de5abc33173019e81955904247e4a8246"
+ integrity sha512-gEPkC0CJwvIWqcTcPSdIzqJkJa9N5vZzUZyBvdu1oiyJu7MfazpJEvj3whfJMysSfXJQxoJ+a1IPrA73VY23VA==
+ dependencies:
+ "@sentry/types" "5.19.2"
+ tslib "^1.9.3"
+
"@sindresorhus/is@^0.14.0":
version "0.14.0"
resolved "https://registry.yarnpkg.com/@sindresorhus/is/-/is-0.14.0.tgz#9fb3a3cf3132328151f353de4632e01e52102bea"
@@ -7069,6 +7121,13 @@ gatsby-plugin-react-helmet@^3.3.6:
dependencies:
"@babel/runtime" "^7.10.3"
+gatsby-plugin-sentry@^1.0.1:
+ version "1.0.1"
+ resolved "https://registry.yarnpkg.com/gatsby-plugin-sentry/-/gatsby-plugin-sentry-1.0.1.tgz#d146e3851488c9545f2c0689cad62bf6e7d1c653"
+ integrity sha512-rKIngbFbBwwGYJi1ayUtEz34tXxpLXvSMD3WWVmdtXs0wrYrlGs30nFJ4JJIxcA7fWtx3hQ2yd5O2ZyQ832G2g==
+ dependencies:
+ "@sentry/browser" latest
+
gatsby-plugin-sharp@^2.6.14:
version "2.6.14"
resolved "https://registry.yarnpkg.com/gatsby-plugin-sharp/-/gatsby-plugin-sharp-2.6.14.tgz#92b1e69a57dcbd316570ccfc58ab4e03bfa252c4"