Skip to content

Commit d2b0ca4

Browse files
update
1 parent 4934bf4 commit d2b0ca4

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

examples/quote-of-the-day/config.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,8 @@
33

44
require("dotenv").config();
55

6-
const fs = require('fs/promises');
7-
const localFeatureFlags = JSON.parse(await fs.readFile("localFeatureFlags.json"));
8-
96
// Export configuration variables
107
module.exports = {
11-
localFeatureFlags,
128
appConfigConnectionString: process.env.APPCONFIG_CONNECTION_STRING,
139
appInsightsConnectionString: process.env.APPLICATIONINSIGHTS_CONNECTION_STRING,
1410
port: process.env.PORT || "8080"

examples/quote-of-the-day/featureManagement.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ async function initializeFeatureManagement(appInsightsClient, targetingContextAc
3030
const featureFlagProvider = new ConfigurationMapFeatureFlagProvider(appConfig);
3131

3232
// You can also alternatively use local feature flag source.
33-
// const featureFlagProvider = new ConfigurationObjectFeatureFlagProvider(config.localFeatureFlags);
33+
// const fs = require('fs/promises');
34+
// const localFeatureFlags = JSON.parse(await fs.readFile("localFeatureFlags.json"));
35+
// const featureFlagProvider = new ConfigurationObjectFeatureFlagProvider(localFeatureFlags);
3436

3537
const publishTelemetry = createTelemetryPublisher(appInsightsClient);
3638
featureManager = new FeatureManager(featureFlagProvider, {

0 commit comments

Comments
 (0)