Skip to content

Commit

Permalink
Add dev sdk key for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
tristanlee85 committed May 15, 2024
1 parent 889f278 commit adac208
Show file tree
Hide file tree
Showing 2 changed files with 86 additions and 1 deletion.
1 change: 0 additions & 1 deletion examples/v7-optimizely-edge/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,3 @@ next-env.d.ts
# Edgio generated build directory
/.edgio
/node_modules
lib/optimizely/*
86 changes: 86 additions & 0 deletions examples/v7-optimizely-edge/lib/optimizely/datafile.json
Original file line number Diff line number Diff line change
@@ -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": []
}

0 comments on commit adac208

Please sign in to comment.