@salesforce/b2c-tooling-sdk / operations/mrt / CloneRedirectsBackendOptions
Interface: CloneRedirectsBackendOptions
Defined in: packages/b2c-tooling-sdk/src/operations/mrt/redirect.ts:1319
Options for cloneRedirectsWithBackend.
Properties
legacyAuth?
optionallegacyAuth:AuthStrategy
Defined in: packages/b2c-tooling-sdk/src/operations/mrt/redirect.ts:1325
Legacy API-key auth strategy. Optional; required only when the legacy backend actually runs.
onFallback()?
optionalonFallback: (reason) =>void
Defined in: packages/b2c-tooling-sdk/src/operations/mrt/redirect.ts:1335
Invoked when auto falls back from SCAPI to legacy.
Parameters
reason
string
Returns
void
onResolve()?
optionalonResolve: (backend) =>void
Defined in: packages/b2c-tooling-sdk/src/operations/mrt/redirect.ts:1337
Invoked with the backend that serves the call (for -D debug).
Parameters
backend
Returns
void
origin?
optionalorigin:string
Defined in: packages/b2c-tooling-sdk/src/operations/mrt/redirect.ts:1333
Legacy MRT API origin.
preference
preference:
MrtBackendPreference
Defined in: packages/b2c-tooling-sdk/src/operations/mrt/redirect.ts:1321
Resolved --mrt-backend preference.
projectSlug
projectSlug:
string
Defined in: packages/b2c-tooling-sdk/src/operations/mrt/redirect.ts:1327
Project slug (= SCAPI storefront ID).
scapiConnection?
optionalscapiConnection:ScapiMrtConnection
Defined in: packages/b2c-tooling-sdk/src/operations/mrt/redirect.ts:1323
SCAPI connection; when absent, auto uses legacy and scapi throws.
sourceEnvironment
sourceEnvironment:
string
Defined in: packages/b2c-tooling-sdk/src/operations/mrt/redirect.ts:1329
Source environment slug to copy redirects from.
targetEnvironment
targetEnvironment:
string
Defined in: packages/b2c-tooling-sdk/src/operations/mrt/redirect.ts:1331
Destination environment slug to copy redirects into (= SCAPI path environment ID).