File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
samples/fx-integration/src/lib Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -9,9 +9,11 @@ import {
9
9
import { cookies } from 'next/headers' ;
10
10
11
11
const SDK_KEY = process . env . OPTIMIZELY_FX_SDK_KEY ! ;
12
+ const ACCESS_TOKEN = process . env . OPTIMIZELY_FX_ACCESS_TOKEN ;
12
13
13
14
const pollingConfigManager = createPollingProjectConfigManager ( {
14
15
sdkKey : SDK_KEY ,
16
+ datafileAccessToken : ACCESS_TOKEN ,
15
17
autoUpdate : true ,
16
18
updateInterval : 60000 , // 1 minute
17
19
} ) ;
@@ -66,11 +68,6 @@ export async function getVariation(path: string) {
66
68
if ( ! ruleset ) {
67
69
return null ;
68
70
}
69
- console . log (
70
- 'Path: "%s". Running an experiment with ruleset "%s"' ,
71
- path ,
72
- ruleset
73
- ) ;
74
71
75
72
const user = await getUserContext ( ) ;
76
73
const decision = user . decide ( ruleset ) ;
You can’t perform that action at this time.
0 commit comments