diff --git a/.circleci/config.yml b/.circleci/config.yml index 7d12896e8f..69c0aea275 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -349,7 +349,7 @@ workflows: filters: branches: only: - - free + - sprig-lib # This is alternate dev env for parallel testing - "build-test": context : org-global diff --git a/src/client/index.jsx b/src/client/index.jsx index b879711ac2..c08e8fef96 100644 --- a/src/client/index.jsx +++ b/src/client/index.jsx @@ -13,10 +13,15 @@ import { getFreshToken, } from '@topcoder-platform/tc-auth-lib'; import { actions, logger, errors } from 'topcoder-react-lib'; -import { client, redux } from 'topcoder-react-utils'; +import { client, redux, config } from 'topcoder-react-utils'; +import { sprig } from '@sprig-technologies/sprig-browser'; import './styles.scss'; +const Sprig = sprig.configure({ + environmentId: config.SPRIG_ENVIRONMENT_ID, +}); + const { setErrorsStore } = errors; /** @@ -55,6 +60,7 @@ function identify(profile, roles, userIdHash) { integrations: { All: false, Chameleon: true }, }, ); + Sprig('setUserId', profile.handle); } /**