diff --git a/examples/v7-optimizely-edge/.gitignore b/examples/v7-optimizely-edge/.gitignore index a8ada8a67..cef55dcf9 100644 --- a/examples/v7-optimizely-edge/.gitignore +++ b/examples/v7-optimizely-edge/.gitignore @@ -38,4 +38,3 @@ next-env.d.ts # Edgio generated build directory /.edgio /node_modules -lib/optimizely/* diff --git a/examples/v7-optimizely-edge/lib/optimizely/datafile.json b/examples/v7-optimizely-edge/lib/optimizely/datafile.json new file mode 100644 index 000000000..8f109d653 --- /dev/null +++ b/examples/v7-optimizely-edge/lib/optimizely/datafile.json @@ -0,0 +1,86 @@ +{ + "accountId": "29260950578", + "projectId": "29260950578", + "revision": "3", + "attributes": [], + "audiences": [ + { + "id": "$opt_dummy_audience", + "name": "Optimizely-Generated Audience for Backwards Compatibility", + "conditions": "[\"or\", {\"match\": \"exact\", \"name\": \"$opt_dummy_attribute\", \"type\": \"custom_attribute\", \"value\": \"$opt_dummy_value\"}]" + } + ], + "version": "4", + "events": [], + "integrations": [], + "anonymizeIP": true, + "botFiltering": false, + "typedAudiences": [], + "variables": [], + "environmentKey": "development", + "sdkKey": "2imW2dz6yoT3fzLKWFDmz", + "featureFlags": [ + { + "id": "179247", + "key": "foo_flag", + "rolloutId": "rollout-179247-29212200416", + "experimentIds": ["9300000938906"], + "variables": [] + } + ], + "rollouts": [ + { + "id": "rollout-179247-29212200416", + "experiments": [ + { + "id": "default-rollout-179247-29212200416", + "key": "default-rollout-179247-29212200416", + "status": "Running", + "layerId": "rollout-179247-29212200416", + "variations": [ + { + "id": "587019", + "key": "off", + "featureEnabled": false, + "variables": [] + } + ], + "trafficAllocation": [{ "entityId": "587019", "endOfRange": 10000 }], + "forcedVariations": {}, + "audienceIds": [], + "audienceConditions": [] + } + ] + } + ], + "experiments": [ + { + "id": "9300000938906", + "key": "rule_one", + "status": "Running", + "layerId": "9300000712842", + "variations": [ + { + "id": "587020", + "key": "on", + "featureEnabled": true, + "variables": [] + }, + { + "id": "587019", + "key": "off", + "featureEnabled": false, + "variables": [] + } + ], + "trafficAllocation": [ + { "entityId": "587019", "endOfRange": 2500 }, + { "entityId": "587020", "endOfRange": 5000 } + ], + "forcedVariations": {}, + "audienceIds": [], + "audienceConditions": [] + } + ], + "groups": [] +}