File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ validateEnvironmentVariables();
6
6
7
7
import { disconnect , prepareDatabaseConnection } from './db/knex-database-connection.js' ;
8
8
import { createServer } from './server.js' ;
9
+ import { config } from './src/shared/config.js' ;
9
10
import { learningContentCache } from './src/shared/infrastructure/caches/learning-content-cache.js' ;
10
11
import { initLearningContent } from './src/shared/infrastructure/datasources/learning-content/datasource.js' ;
11
12
import { temporaryStorage } from './src/shared/infrastructure/temporary-storage/index.js' ;
@@ -30,7 +31,9 @@ async function _setupEcosystem() {
30
31
}
31
32
32
33
const start = async function ( ) {
33
- await _setupEcosystem ( ) ;
34
+ if ( config . featureToggles . setupEcosystemBeforeStart ) {
35
+ await _setupEcosystem ( ) ;
36
+ }
34
37
server = await createServer ( ) ;
35
38
await server . start ( ) ;
36
39
} ;
Original file line number Diff line number Diff line change @@ -214,6 +214,7 @@ const configuration = (function () {
214
214
isQuestEnabled : toBoolean ( process . env . FT_ENABLE_QUESTS ) ,
215
215
isTextToSpeechButtonEnabled : toBoolean ( process . env . FT_ENABLE_TEXT_TO_SPEECH_BUTTON ) ,
216
216
isV3EligibilityCheckEnabled : toBoolean ( process . env . FT_ENABLE_V3_ELIGIBILITY_CHECK ) ,
217
+ setupEcosystemBeforeStart : toBoolean ( process . env . FT_SETUP_ECOSYSTEM_BEFORE_START ) || false ,
217
218
showExperimentalMissions : toBoolean ( process . env . FT_SHOW_EXPERIMENTAL_MISSIONS ) ,
218
219
showNewCampaignPresentationPage : toBoolean ( process . env . FT_SHOW_NEW_CAMPAIGN_PRESENTATION_PAGE ) ,
219
220
showNewResultPage : toBoolean ( process . env . FT_SHOW_NEW_RESULT_PAGE ) ,
You can’t perform that action at this time.
0 commit comments