@salesforce/b2c-tooling-sdk / operations/mrt / GetEnvironmentBackendOptions
Interface: GetEnvironmentBackendOptions
Defined in: packages/b2c-tooling-sdk/src/operations/mrt/env.ts:1777
Options for getEnvironmentWithBackend.
Extends
Properties
environment
environment:
string
Defined in: packages/b2c-tooling-sdk/src/operations/mrt/env.ts:1779
Environment slug (= SCAPI environment ID) to fetch.
legacyAuth?
optionallegacyAuth:AuthStrategy
Defined in: packages/b2c-tooling-sdk/src/operations/mrt/env.ts:1450
Legacy API-key auth strategy. Optional; required only when the legacy backend actually runs.
Inherited from
onFallback()?
optionalonFallback: (reason) =>void
Defined in: packages/b2c-tooling-sdk/src/operations/mrt/env.ts:1456
Invoked when auto falls back from SCAPI to legacy.
Parameters
reason
string
Returns
void
Inherited from
onResolve()?
optionalonResolve: (backend) =>void
Defined in: packages/b2c-tooling-sdk/src/operations/mrt/env.ts:1458
Invoked with the backend that serves the call (for -D debug).
Parameters
backend
Returns
void
Inherited from
origin?
optionalorigin:string
Defined in: packages/b2c-tooling-sdk/src/operations/mrt/env.ts:1454
Legacy MRT API origin.
Inherited from
preference
preference:
MrtBackendPreference
Defined in: packages/b2c-tooling-sdk/src/operations/mrt/env.ts:1446
Resolved --mrt-backend preference.
Inherited from
projectSlug
projectSlug:
string
Defined in: packages/b2c-tooling-sdk/src/operations/mrt/env.ts:1452
Project slug (= SCAPI storefront ID).
Inherited from
scapiConnection?
optionalscapiConnection:ScapiMrtConnection
Defined in: packages/b2c-tooling-sdk/src/operations/mrt/env.ts:1448
SCAPI connection; when absent, auto uses legacy and scapi throws.