File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ pushd "$FLAGGING_PATH" || exit 1
2727# Generate UUID and update package.json version
2828echo " Updating package version with prerelease tag and UUID..."
2929UUID=$( uuidgen)
30- PACKAGE_JSON_PATH=" packages/flagging/ package.json"
30+ PACKAGE_JSON_PATH=" package.json"
3131if [ ! -f " $PACKAGE_JSON_PATH " ]; then
3232 echo " Error: package.json not found at $PACKAGE_JSON_PATH "
3333 popd
Original file line number Diff line number Diff line change @@ -111,14 +111,14 @@ export class DatadogProvider implements Provider {
111111async function fetchConfiguration ( options : DatadogProviderOptions , context : EvaluationContext ) : Promise < Configuration > {
112112 const baseUrl = options . baseUrl || 'https://dd.datad0g.com'
113113
114- const parameters = [
115- `application_id=${ options . applicationId } ` ,
116- `client_token=${ options . clientToken } ` ,
117- `dd_api_key=${ options . clientToken } ` ,
118- ]
114+ const parameters = [ `application_id=${ options . applicationId } ` , `client_token=${ options . clientToken } ` ]
119115
120- const response = await fetch ( `${ baseUrl } /api/unstable/feature-flags/ assignments?${ parameters . join ( '&' ) } ` , {
116+ const response = await fetch ( `${ baseUrl } /api/unstable/precompute- assignments?${ parameters . join ( '&' ) } ` , {
121117 method : 'POST' ,
118+ headers : {
119+ 'Content-Type' : 'application/json' ,
120+ 'DD-API-KEY' : options . clientToken ,
121+ } ,
122122 body : JSON . stringify ( {
123123 context,
124124 } ) ,
You can’t perform that action at this time.
0 commit comments