diff --git a/docker/templates/new-gatsby-app/{{cookiecutter.app_name}}/gatsby-config.js b/docker/templates/new-gatsby-app/{{cookiecutter.app_name}}/gatsby-config.js index 78de8c5..309de29 100644 --- a/docker/templates/new-gatsby-app/{{cookiecutter.app_name}}/gatsby-config.js +++ b/docker/templates/new-gatsby-app/{{cookiecutter.app_name}}/gatsby-config.js @@ -36,5 +36,11 @@ module.exports = { trackingId: "", }, }, + { + resolve: "@sentry/gatsby", + options: { + dsn: process.env.SENTRY_DSN ? process.env.SENTRY_DSN : "", + } + }, ], } diff --git a/docker/templates/new-gatsby-app/{{cookiecutter.app_name}}/package.json b/docker/templates/new-gatsby-app/{{cookiecutter.app_name}}/package.json index d1b87db..46a65a9 100644 --- a/docker/templates/new-gatsby-app/{{cookiecutter.app_name}}/package.json +++ b/docker/templates/new-gatsby-app/{{cookiecutter.app_name}}/package.json @@ -5,6 +5,7 @@ "version": "0.1.0", "author": "DataMade", "dependencies": { + "@sentry/gatsby": "^5.27.3", "bootstrap": "^4.4.1", "eslint-config-react-app": "^5.2.1", "gatsby": "^2.19.45", diff --git a/docker/templates/new-gatsby-app/{{cookiecutter.app_name}}/yarn.lock b/docker/templates/new-gatsby-app/{{cookiecutter.app_name}}/yarn.lock index afe845f..0ceb998 100644 --- a/docker/templates/new-gatsby-app/{{cookiecutter.app_name}}/yarn.lock +++ b/docker/templates/new-gatsby-app/{{cookiecutter.app_name}}/yarn.lock @@ -1739,6 +1739,89 @@ lodash "^4.17.15" lodash-es "^4.17.15" +"@sentry/browser@5.27.3": + version "5.27.3" + resolved "https://registry.yarnpkg.com/@sentry/browser/-/browser-5.27.3.tgz#02e78a4502ee99988d3cbb0075a11ec44b503871" + integrity sha512-vczS+XTW4Nk2A7TIpAw8IVFHpp+NK6mV9euBG2I61Bs2QbQY9yKLfbjiln/yH2Q8X4THX6MKa0GuiPoCEeq3uw== + dependencies: + "@sentry/core" "5.27.3" + "@sentry/types" "5.27.3" + "@sentry/utils" "5.27.3" + tslib "^1.9.3" + +"@sentry/core@5.27.3": + version "5.27.3" + resolved "https://registry.yarnpkg.com/@sentry/core/-/core-5.27.3.tgz#d7a175b71596b7eb4b2e8b4cd1858a60d95813bb" + integrity sha512-yqepQO88jSt5hy0awpk61AxI4oHB09LjVbUEk4nJDg+1YXuND23cuZvH+Sp2jCZX2vrsw2tefwflToYfA8/U2w== + dependencies: + "@sentry/hub" "5.27.3" + "@sentry/minimal" "5.27.3" + "@sentry/types" "5.27.3" + "@sentry/utils" "5.27.3" + tslib "^1.9.3" + +"@sentry/gatsby@^5.27.3": + version "5.27.3" + resolved "https://registry.yarnpkg.com/@sentry/gatsby/-/gatsby-5.27.3.tgz#6688e2615667ad710a53e85f3a7456936bc2c482" + integrity sha512-iMEqXOax0Q7xH/enk4bJFGknzBF0e0S6GtamffOHEw6PcyDgHSF9Pwx2nUXM74zZ2N1Ek2SnKbsMUdXR7jlAzA== + dependencies: + "@sentry/react" "5.27.3" + "@sentry/tracing" "5.27.3" + +"@sentry/hub@5.27.3": + version "5.27.3" + resolved "https://registry.yarnpkg.com/@sentry/hub/-/hub-5.27.3.tgz#f509c2fd38f500afef6030504e82510dbd0649d6" + integrity sha512-icEH3hr6NVQkpowXZcPOs9IgJZP5lMKtvud4mVioSpkd+NxtRdKrGEX4eF2TCviOJc9Md0mV4K+aL5Au7hxggQ== + dependencies: + "@sentry/types" "5.27.3" + "@sentry/utils" "5.27.3" + tslib "^1.9.3" + +"@sentry/minimal@5.27.3": + version "5.27.3" + resolved "https://registry.yarnpkg.com/@sentry/minimal/-/minimal-5.27.3.tgz#c9263bdd6270bfeae64137177448911dff568e53" + integrity sha512-ng01cM0rsE1RMjqVTpPLN0ZVkTo0I675usM1krkpQe8ddW6tfQ6EJWpt02/BrpQZRQzTtfWp6/RyB1KFXg6icg== + dependencies: + "@sentry/hub" "5.27.3" + "@sentry/types" "5.27.3" + tslib "^1.9.3" + +"@sentry/react@5.27.3": + version "5.27.3" + resolved "https://registry.yarnpkg.com/@sentry/react/-/react-5.27.3.tgz#aefff1cb2249a4e7f123c7467d1da205d5c02e92" + integrity sha512-p7E+djSUVKz02HoRVDX+zamjV8+RL4bqoPnS9JQESweB0sRTYlpvi+CqWLYWNWnamWQWOl97hOw/lLDpo4kUSA== + dependencies: + "@sentry/browser" "5.27.3" + "@sentry/minimal" "5.27.3" + "@sentry/types" "5.27.3" + "@sentry/utils" "5.27.3" + hoist-non-react-statics "^3.3.2" + tslib "^1.9.3" + +"@sentry/tracing@5.27.3": + version "5.27.3" + resolved "https://registry.yarnpkg.com/@sentry/tracing/-/tracing-5.27.3.tgz#787e57a2f7071e375f4fad0f3c3a5ff3381928e7" + integrity sha512-UWrHMdGxPfx1u558CWm1tptc2z0BuqCHVe2+BNN7POahq5BkpbGqaotyPQTBHbfmcs6QGfsMG57ou8HQFrBxyA== + dependencies: + "@sentry/hub" "5.27.3" + "@sentry/minimal" "5.27.3" + "@sentry/types" "5.27.3" + "@sentry/utils" "5.27.3" + tslib "^1.9.3" + +"@sentry/types@5.27.3": + version "5.27.3" + resolved "https://registry.yarnpkg.com/@sentry/types/-/types-5.27.3.tgz#d377508769bc658d672c287166c7f6c5db45660c" + integrity sha512-PkWhMArFMxBb1g3HtMEL8Ea9PYae2MU0z9CMIWiqzerFy2ZpKG98IU3pt8ic4JkmKQdwB8hDiZpRPMHhW0WYwQ== + +"@sentry/utils@5.27.3": + version "5.27.3" + resolved "https://registry.yarnpkg.com/@sentry/utils/-/utils-5.27.3.tgz#1fc45dfad1f1e4398bee58684d8947666d8d3003" + integrity sha512-R9WvFrRBALZvCzu/9BsuXBCfkNxz4MwdBNSXaBsJo4afQw1ljkjIc9DpHzlL9S9goIwXo81Buwmr5gGDO6aH+Q== + dependencies: + "@sentry/types" "5.27.3" + 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" @@ -7362,7 +7445,7 @@ hmac-drbg@^1.0.0: minimalistic-assert "^1.0.0" minimalistic-crypto-utils "^1.0.1" -hoist-non-react-statics@^3.3.0: +hoist-non-react-statics@^3.3.0, hoist-non-react-statics@^3.3.2: version "3.3.2" resolved "https://registry.yarnpkg.com/hoist-non-react-statics/-/hoist-non-react-statics-3.3.2.tgz#ece0acaf71d62c2969c2ec59feff42a4b1a85b45" integrity sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw==