Skip to content

@salesforce/b2c-tooling-sdk / operations/mrt / CreateBundleOptions

Interface: CreateBundleOptions ​

Defined in: packages/b2c-tooling-sdk/src/operations/mrt/bundle.ts:37

Configuration for bundle creation.

Extended by ​

Properties ​

buildDirectory? ​

optional buildDirectory: string

Defined in: packages/b2c-tooling-sdk/src/operations/mrt/bundle.ts:66

Path to the build directory containing the application build output.

Default ​

ts
'build'

message? ​

optional message: string

Defined in: packages/b2c-tooling-sdk/src/operations/mrt/bundle.ts:42

Optional message describing the bundle. Defaults to a git-based message or a timestamp.


projectSlug ​

projectSlug: string

Defined in: packages/b2c-tooling-sdk/src/operations/mrt/bundle.ts:72

Project slug for the MRT project. Used to prefix files in the archive.


ssrOnly ​

ssrOnly: string[]

Defined in: packages/b2c-tooling-sdk/src/operations/mrt/bundle.ts:54

Glob patterns for files that should only run on the server.

Example ​

ts
['ssr.js', 'ssr/*.js']

ssrParameters? ​

optional ssrParameters: Record<string, unknown>

Defined in: packages/b2c-tooling-sdk/src/operations/mrt/bundle.ts:48

SSR parameters to include in the bundle. These are configuration values for the SSR runtime.


ssrShared ​

ssrShared: string[]

Defined in: packages/b2c-tooling-sdk/src/operations/mrt/bundle.ts:60

Glob patterns for files shared between client and server.

Example ​

ts
['static/**/*', '**/*.js']

Released under the Apache-2.0 License.