Skip to content

Commit 62642c2

Browse files
committed
Add one more variable OPTIMIZELY_FX_ACCESS_TOKEN
1 parent d434652 commit 62642c2

File tree

1 file changed

+2
-5
lines changed
  • samples/fx-integration/src/lib

1 file changed

+2
-5
lines changed

samples/fx-integration/src/lib/fx.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@ import {
99
import { cookies } from 'next/headers';
1010

1111
const SDK_KEY = process.env.OPTIMIZELY_FX_SDK_KEY!;
12+
const ACCESS_TOKEN = process.env.OPTIMIZELY_FX_ACCESS_TOKEN;
1213

1314
const pollingConfigManager = createPollingProjectConfigManager({
1415
sdkKey: SDK_KEY,
16+
datafileAccessToken: ACCESS_TOKEN,
1517
autoUpdate: true,
1618
updateInterval: 60000, // 1 minute
1719
});
@@ -66,11 +68,6 @@ export async function getVariation(path: string) {
6668
if (!ruleset) {
6769
return null;
6870
}
69-
console.log(
70-
'Path: "%s". Running an experiment with ruleset "%s"',
71-
path,
72-
ruleset
73-
);
7471

7572
const user = await getUserContext();
7673
const decision = user.decide(ruleset);

0 commit comments

Comments
 (0)