File tree Expand file tree Collapse file tree 6 files changed +523
-2
lines changed
Expand file tree Collapse file tree 6 files changed +523
-2
lines changed Original file line number Diff line number Diff line change 9090 GATSBY_DOC_BUILD_DATE : ${{ steps.submodule.outputs.build_date }}
9191 GATSBY_DOC_BUILD_GIT_SHA : ${{ steps.submodule.outputs.git_sha }}
9292 GATSBY_DOC_BUILD_SUBMODULE_SHA : ${{ steps.submodule.outputs.submodule_status }}
93+ GATSBY_SENTRY_DSN : ${{ secrets.SENTRY_DSN }}
9394 run : |
9495 yarn build --verbose
9596
Original file line number Diff line number Diff line change @@ -18,6 +18,9 @@ module.exports = {
1818 } ,
1919 jsxRuntime : "automatic" ,
2020 plugins : [
21+ {
22+ resolve : "@sentry/gatsby" ,
23+ } ,
2124 {
2225 resolve : "gatsby-plugin-google-tagmanager" ,
2326 options : {
Original file line number Diff line number Diff line change 11require ( "ts-node" ) . register ( { transpileOnly : true } ) ;
2+ require ( "dotenv" ) . config ( ) ;
23
34const path = require ( "path" ) ;
45
Original file line number Diff line number Diff line change 2626 "@mui/lab" : " ^5.0.0-alpha.95" ,
2727 "@mui/material" : " ^5.10.0" ,
2828 "@seagreenio/react-bulma" : " ^0.1.0-beta.4" ,
29+ "@sentry/gatsby" : " ^8.42.0" ,
2930 "algoliasearch" : " ^4.11.0" ,
3031 "axios" : " ^0.24.0" ,
3132 "clsx" : " ^1.1.1" ,
Original file line number Diff line number Diff line change 1+ import * as Sentry from "@sentry/gatsby" ;
2+
3+ Sentry . init ( {
4+ environment : process . env . NODE_ENV ,
5+ dsn : process . env . GATSBY_SENTRY_DSN ,
6+ integrations : [ Sentry . browserTracingIntegration ( ) ] ,
7+
8+ tracesSampleRate : 0.1 ,
9+ } ) ;
You can’t perform that action at this time.
0 commit comments