Skip to content

Commit e0ef4e4

Browse files
author
Alex Patterson
committed
update logrocket 2.1.1
1 parent 0f46cc6 commit e0ef4e4

3 files changed

Lines changed: 17 additions & 15 deletions

File tree

frontend/main/package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend/main/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"firebase-admin": "^9.4.2",
2929
"gray-matter": "^4.0.2",
3030
"js-cookie": "^2.2.1",
31-
"logrocket": "^2.0.0",
31+
"logrocket": "^2.1.1",
3232
"logrocket-react": "^4.0.1",
3333
"next": "^11.1.2",
3434
"next-mdx-remote": "^3.0.5",

frontend/main/src/pages/_app.tsx

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,16 @@ import { config } from '@/config/facebook';
44
import type { AppProps } from 'next/app';
55
import dynamic from 'next/dynamic';
66

7-
// const LogRocket = require('logrocket');
8-
// const setupLogRocketReact = require('logrocket-react');
7+
if (process.env.NODE_ENV === 'production') {
8+
const LogRocket = require('logrocket');
9+
const setupLogRocketReact = require('logrocket-react');
910

10-
// if (typeof window !== 'undefined') {
11-
// LogRocket.init('qlm7wr/codingcatdev');
12-
// // plugins should also only be initialized when in the browser
13-
// setupLogRocketReact(LogRocket);
14-
// }
11+
if (typeof window !== 'undefined') {
12+
LogRocket.init('qlm7wr/codingcatdev');
13+
// plugins should also only be initialized when in the browser
14+
setupLogRocketReact(LogRocket);
15+
}
16+
}
1517

1618
const FirebaseProvider = dynamic<any>(
1719
() =>

0 commit comments

Comments
 (0)