diff --git a/packages/rum-core/src/boot/rumPublicApi.ts b/packages/rum-core/src/boot/rumPublicApi.ts index f2dc9d0c53..ee2f15c681 100644 --- a/packages/rum-core/src/boot/rumPublicApi.ts +++ b/packages/rum-core/src/boot/rumPublicApi.ts @@ -29,7 +29,11 @@ import { RumEvent } from '../rumEvent.types' import { buildEnv } from './buildEnv' import { startRum } from './startRum' -const droppedConfigurationOptions = ['publicApiKey' as const, 'datacenter' as const] +const droppedConfigurationOptions = [ + 'publicApiKey' as const, + 'datacenter' as const, + 'useAlternateIntakeDomains' as const, +] type DroppedConfigurationOptions = typeof droppedConfigurationOptions[number] export interface RumInitConfiguration extends Omit { @@ -103,7 +107,10 @@ export function makeRumPublicApi(startRumImpl: S droppedConfigurationOptions.forEach((option) => delete (initConfiguration as InitConfiguration)[option]) - const { configuration, internalMonitoring } = commonInit(initConfiguration, buildEnv) + const { configuration, internalMonitoring } = commonInit( + { ...initConfiguration, useAlternateIntakeDomains: true }, + buildEnv + ) if (!configuration.trackViewsManually) { doStartRum(initConfiguration, configuration, internalMonitoring) } else {