Skip to content

Commit

Permalink
feat(logrocket): Add logrocket
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorgerhardt committed Sep 13, 2018
1 parent 00fbc70 commit 134777c
Show file tree
Hide file tree
Showing 3 changed files with 1,823 additions and 1,337 deletions.
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"predeploy": "yarn",
"prestart": "yarn",
"pretest": "yarn",
"semantic-release": "semantic-release pre && npm publish && semantic-release post",
"semantic-release": "semantic-release",
"start": "mastarm build --serve --env development",
"test": "mastarm lint src"
},
Expand Down Expand Up @@ -38,7 +38,8 @@
"jsolines": "^1.0.2",
"leaflet": "^1.3.4",
"lodash": "^4.17.10",
"mastarm": "^4.2.1",
"logrocket": "^0.6.17",
"mastarm": "^4.3.1",
"prop-types": "^15.6.2",
"react": "^16.4.2",
"react-dom": "^16.4.2",
Expand Down
5 changes: 5 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ import mount from './mount'
import reducers from './reducers'
import * as select from './selectors'

if (process.env.LOGROCKET) {
const LogRocket = require('logrocket')
LogRocket.init(process.env.LOGROCKET)
}

// Set the title
document.title = message('Title')

Expand Down
Loading

0 comments on commit 134777c

Please sign in to comment.