Adding user to sentry and fixing source maps
This commit is contained in:
parent
d42d40dd6d
commit
a5875cd30f
|
|
@ -1,13 +1,11 @@
|
|||
#!/bin/sh
|
||||
# GIT_SHA=$(eval git rev-parse HEAD)
|
||||
# GIT_BRANCH=$(git branch --no-color | grep -E '^\*' | sed 's/\*[^a-z]*//g')
|
||||
|
||||
# RELEASE="${GIT_BRANCH}_${GIT_SHA}"
|
||||
|
||||
|
||||
# RELEASE=$(echo "$RELEASE" | sed -e 's/[\/\\\ .]/\-/g')
|
||||
# echo $RELEASE
|
||||
|
||||
GIT_SHA=$(eval git rev-parse HEAD)
|
||||
echo $GIT_SHA
|
||||
REACT_APP_SENTRY_RELEASE=$GIT_SHA craco --max-old-space-size=4096 build --config craco.build.config.js
|
||||
|
||||
rm ./build/static/js/*.js.map
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@ import {
|
|||
getResponseErrorMessage,
|
||||
callAPI,
|
||||
} from "./ErrorSagas";
|
||||
import * as Sentry from "@sentry/browser";
|
||||
|
||||
import { fetchOrgsSaga } from "./OrgSagas";
|
||||
|
||||
|
|
@ -295,6 +296,9 @@ export function* setCurrentUserSaga(action: ReduxAction<FetchUserRequest>) {
|
|||
const me = yield call(fetchUserSaga, action);
|
||||
if (me) {
|
||||
AnalyticsUtil.identifyUser(me.id, me);
|
||||
Sentry.configureScope(function(scope) {
|
||||
scope.setUser({ email: me.email, id: me.id });
|
||||
});
|
||||
resetAuthExpiration();
|
||||
yield put({
|
||||
type: ReduxActionTypes.SET_CURRENT_USER_SUCCESS,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user