Skip to content

Commit

Permalink
[Main][Task]27157764: Add all CfgSync plugin exports to AISKU and cha…
Browse files Browse the repository at this point in the history
…nge the default CfgSync plugin url endpoint (#2300)

* change cfgsync plugin default endpoint

* update

* update
  • Loading branch information
Karlie-777 committed Apr 2, 2024
1 parent 150db5d commit 2fa0096
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions AISKU/src/InternalConstants.ts
Expand Up @@ -31,3 +31,4 @@ export const STR_TRACK_EXCEPTION = _TRACK + "Exception" as "trackException";
export const STR_TRACK_DEPENDENCY_DATA = _TRACK + "DependencyData" as "trackDependencyData";
export const STR_SET_AUTHENTICATED_USER_CONTEXT = "set" + _AUTHENTICATED_USER_CONTEXT as "setAuthenticatedUserContext";
export const STR_CLEAR_AUTHENTICATED_USER_CONTEXT = "clear" + _AUTHENTICATED_USER_CONTEXT as "clearAuthenticatedUserContext";
export const CONFIG_ENDPOINT_URL = "https://js.monitor.azure.com/scripts/b/ai.config.1.cfg.json";
4 changes: 4 additions & 0 deletions AISKU/src/applicationinsights-web.ts
Expand Up @@ -62,3 +62,7 @@ export {
AjaxPlugin as DependenciesPlugin, IDependenciesPlugin,
DependencyListenerFunction, DependencyInitializerFunction, IDependencyInitializerHandler, IDependencyListenerHandler
} from "@microsoft/applicationinsights-dependencies-js";

export { CfgSyncPlugin, ICfgSyncPlugin, ICfgSyncConfig, ICfgSyncEvent, ICfgSyncMode, NonOverrideCfg, OnCompleteCallback, SendGetFunction
} from "@microsoft/applicationinsights-cfgsync-js";

Expand Up @@ -28,7 +28,7 @@ const _defaultConfig: IConfigDefaults<ICfgSyncConfig> = objDeepFreeze({
syncMode: ICfgSyncMode.Broadcast,
blkCdnCfg: udfVal,
customEvtName: udfVal,
cfgUrl: udfVal, // as long as it is set to NOT NUll, we will NOT use config from core
cfgUrl: udfVal,
overrideSyncFn: udfVal,
overrideFetchFn: udfVal,
onCfgChangeReceive: udfVal,
Expand Down

0 comments on commit 2fa0096

Please sign in to comment.