@salesforce/b2c-tooling-sdk / operations/mrt / CreateEnvironmentBackendOptions
Interface: CreateEnvironmentBackendOptions
Defined in: packages/b2c-tooling-sdk/src/operations/mrt/env.ts:1553
Options for createEnvironmentWithBackend.
Extends
Properties
allowCookies?
optionalallowCookies:boolean
Defined in: packages/b2c-tooling-sdk/src/operations/mrt/env.ts:1574
Forward cookies to origin (legacy only).
enableSourceMaps?
optionalenableSourceMaps:boolean
Defined in: packages/b2c-tooling-sdk/src/operations/mrt/env.ts:1576
Enable source maps (legacy only).
externalDomain?
optionalexternalDomain:string
Defined in: packages/b2c-tooling-sdk/src/operations/mrt/env.ts:1572
External domain (legacy only).
externalHostname?
optionalexternalHostname:string
Defined in: packages/b2c-tooling-sdk/src/operations/mrt/env.ts:1570
Full external hostname (legacy only).
hostname?
optionalhostname:string
Defined in: packages/b2c-tooling-sdk/src/operations/mrt/env.ts:1568
Hostname pattern for V8 Tag loading (legacy only).
isProduction?
optionalisProduction:boolean
Defined in: packages/b2c-tooling-sdk/src/operations/mrt/env.ts:1566
Mark as a production environment (legacy only).
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
logLevel?
optionallogLevel:"TRACE"|"DEBUG"|"INFO"|"WARN"|"ERROR"|"FATAL"
Defined in: packages/b2c-tooling-sdk/src/operations/mrt/env.ts:1580
Minimum log level (legacy only).
name?
optionalname:string
Defined in: packages/b2c-tooling-sdk/src/operations/mrt/env.ts:1560
Display name for the new environment. SCAPI requires it (the only field it accepts on create); legacy defaults it to the slug. Optional here so each backend branch validates it — SCAPI throws a MrtScapiPreconditionError when absent so auto can fall back to legacy.
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
proxyConfigs?
optionalproxyConfigs:object[]
Defined in: packages/b2c-tooling-sdk/src/operations/mrt/env.ts:1584
Proxy configurations (legacy only).
host
host:
string
path
path:
string
region?
optionalregion:"us-east-1"|"us-east-2"|"us-west-1"|"us-west-2"|"ap-south-1"|"ap-south-2"|"ap-northeast-2"|"ap-southeast-1"|"ap-southeast-2"|"ap-southeast-3"|"ap-northeast-1"|"ap-northeast-3"|"ca-central-1"|"eu-central-1"|"eu-central-2"|"eu-west-1"|"eu-west-2"|"eu-west-3"|"eu-north-1"|"eu-south-1"|"il-central-1"|"me-central-1"|"sa-east-1"
Defined in: packages/b2c-tooling-sdk/src/operations/mrt/env.ts:1564
Default SSR region, hyphenated legacy form (legacy only).
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.
Inherited from
EnvBackendOptions.scapiConnection
slug?
optionalslug:string
Defined in: packages/b2c-tooling-sdk/src/operations/mrt/env.ts:1562
Environment slug (legacy only; SCAPI generates the environment ID).
ssrStaticIps?
optionalssrStaticIps:boolean
Defined in: packages/b2c-tooling-sdk/src/operations/mrt/env.ts:1578
Make outbound requests from static IPs (legacy only).
whitelistedIps?
optionalwhitelistedIps:string
Defined in: packages/b2c-tooling-sdk/src/operations/mrt/env.ts:1582
IP whitelist, space-separated CIDR blocks (legacy only).