Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejs
const configBuilderOptions =   {
	sources: [
		new configSourceSdk.adapters.ConfigServiceSourceAdpater({
			url: "{{config-source-url}}"
		}),
		new configSourceSdk.adapters.EnvVarsSourceAdpater(envHelper)
	],
	keys: ["sunbird_explore_button_visibility", "...."],
	cacheRefresh: {
		enabled: true,
		interval: 10
	}
};


const configBuilder = new configSourceSdk.ConfigBuilder(configBuilderOptions);
configBuilder.buildConfig().then(function(status){
// handle status response here
})

...