File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ const storiesBackendUrl = process.env.REACT_APP_STORIES_BACKEND_URL;
2121const cadetLoggerUrl = isTest ? undefined : process . env . REACT_APP_CADET_LOGGER ;
2222const cadetLoggerInterval = parseInt ( process . env . REACT_APP_CADET_LOGGER_INTERVAL || '10000' , 10 ) ;
2323const useBackend = ! isTest && isTrue ( process . env . REACT_APP_USE_BACKEND ) ;
24+ const useEmptyAssetPrefix = isTrue ( process . env . REACT_APP_USE_EMPTY_ASSET_PREFIX ) ;
2425const defaultSourceChapter = Chapter . SOURCE_4 ;
2526const defaultSourceVariant = Variant . DEFAULT ;
2627const defaultQuestionId = 0 ;
@@ -154,6 +155,7 @@ const Constants = {
154155 storiesBackendUrl,
155156 cadetLoggerUrl,
156157 useBackend,
158+ useEmptyAssetPrefix,
157159 defaultSourceChapter,
158160 defaultSourceVariant,
159161 defaultQuestionId,
Original file line number Diff line number Diff line change 1- import { Links } from 'src/commons/utils/Constants' ;
1+ import UtilConstants , { Links } from 'src/commons/utils/Constants' ;
22
33import FontAssets from '../assets/FontAssets' ;
44
55export const Constants = {
66 assetsFolder : Links . sourceAcademyAssets ,
7- useEmptyAssetPrefix : process . env . REACT_APP_USE_EMPTY_ASSET_PREFIX ?. toUpperCase ( ) === 'TRUE' ,
7+ useEmptyAssetPrefix : UtilConstants . useEmptyAssetPrefix ,
88 fadeDuration : 600 ,
99 nullFunction : ( ) => { } ,
1010 nullInteractionId : '' ,
You can’t perform that action at this time.
0 commit comments