File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ REACT_APP_BACKEND_URL=http://localhost:4000
4
4
REACT_APP_USE_BACKEND = TRUE
5
5
REACT_APP_PLAYGROUND_ONLY = FALSE
6
6
REACT_APP_ENABLE_GITHUB_ASSESSMENTS = TRUE
7
+ REACT_APP_ENABLE_REMOTE_EXECUTION = FALSE
7
8
REACT_APP_SHOW_RESEARCH_PROMPT = FALSE
8
9
9
10
REACT_APP_URL_SHORTENER_SIGNATURE =
Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ const moduleBackendUrl = process.env.REACT_APP_MODULE_BACKEND_URL || 'modules';
30
30
const sharedbBackendUrl = process . env . REACT_APP_SHAREDB_BACKEND_URL || '' ;
31
31
const playgroundOnly = ! isTest && isTrue ( process . env . REACT_APP_PLAYGROUND_ONLY , true ) ;
32
32
const enableGitHubAssessments = isTest || isTrue ( process . env . REACT_APP_ENABLE_GITHUB_ASSESSMENTS ) ;
33
+ const enableRemoteExecution = isTest || isTrue ( process . env . REACT_APP_ENABLE_REMOTE_EXECUTION ) ;
33
34
const sentryDsn = process . env . REACT_APP_SENTRY_DSN ;
34
35
const googleClientId = process . env . REACT_APP_GOOGLE_CLIENT_ID ;
35
36
const googleApiKey = process . env . REACT_APP_GOOGLE_API_KEY ;
@@ -101,6 +102,7 @@ const Constants = {
101
102
authProviders,
102
103
playgroundOnly,
103
104
enableGitHubAssessments,
105
+ enableRemoteExecution,
104
106
sentryDsn,
105
107
googleClientId,
106
108
googleApiKey,
Original file line number Diff line number Diff line change @@ -115,7 +115,7 @@ import MobileWorkspace, {
115
115
} from '../../commons/mobileWorkspace/MobileWorkspace' ;
116
116
import { SideBarTab } from '../../commons/sideBar/SideBar' ;
117
117
import { SideContentTab , SideContentType } from '../../commons/sideContent/SideContentTypes' ;
118
- import { Links } from '../../commons/utils/Constants' ;
118
+ import Constants , { Links } from '../../commons/utils/Constants' ;
119
119
import { generateLanguageIntroduction } from '../../commons/utils/IntroductionHelper' ;
120
120
import { convertParamToBoolean , convertParamToInt } from '../../commons/utils/ParamParseHelper' ;
121
121
import { IParsedQuery , parseQuery } from '../../commons/utils/QueryHelper' ;
@@ -776,7 +776,7 @@ const Playground: React.FC<PlaygroundProps> = props => {
776
776
}
777
777
}
778
778
779
- if ( ! isSicpEditor ) {
779
+ if ( ! isSicpEditor && Constants . enableRemoteExecution ) {
780
780
tabs . push ( remoteExecutionTab ) ;
781
781
}
782
782
You can’t perform that action at this time.
0 commit comments