---
editLink: false
lastUpdated: false
---

[@salesforce/b2c-tooling-sdk](../../../modules.md) / [operations/mrt](../index.md) / CreateBundleOptions

# Interface: CreateBundleOptions

Defined in: [packages/b2c-tooling-sdk/src/operations/mrt/bundle.ts:52](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/1dedfc1ffefa01c3d5bff62c8f7e7e682a1a91cd/packages/b2c-tooling-sdk/src/operations/mrt/bundle.ts#L52)

Configuration for bundle creation.

## Extended by

- [`PushOptions`](PushOptions.md)

## Properties

### buildDirectory?

> `optional` **buildDirectory**: `string`

Defined in: [packages/b2c-tooling-sdk/src/operations/mrt/bundle.ts:85](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/1dedfc1ffefa01c3d5bff62c8f7e7e682a1a91cd/packages/b2c-tooling-sdk/src/operations/mrt/bundle.ts#L85)

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:57](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/1dedfc1ffefa01c3d5bff62c8f7e7e682a1a91cd/packages/b2c-tooling-sdk/src/operations/mrt/bundle.ts#L57)

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

***

### projectDirectory?

> `optional` **projectDirectory**: `string`

Defined in: [packages/b2c-tooling-sdk/src/operations/mrt/bundle.ts:94](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/1dedfc1ffefa01c3d5bff62c8f7e7e682a1a91cd/packages/b2c-tooling-sdk/src/operations/mrt/bundle.ts#L94)

Directory to read `config.server.{ts,js}` from when ssrOnly/ssrShared are
not provided explicitly. The config is read straight from source at bundle
time (no build step), so `config.server.js` need not be emitted into the
build output.

#### Default

```ts
process.cwd()
```

***

### projectSlug

> **projectSlug**: `string`

Defined in: [packages/b2c-tooling-sdk/src/operations/mrt/bundle.ts:100](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/1dedfc1ffefa01c3d5bff62c8f7e7e682a1a91cd/packages/b2c-tooling-sdk/src/operations/mrt/bundle.ts#L100)

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

***

### ssrOnly?

> `optional` **ssrOnly**: `string`[]

Defined in: [packages/b2c-tooling-sdk/src/operations/mrt/bundle.ts:71](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/1dedfc1ffefa01c3d5bff62c8f7e7e682a1a91cd/packages/b2c-tooling-sdk/src/operations/mrt/bundle.ts#L71)

Glob patterns for files that should only run on the server.
If omitted, loaded from `config.server.{ts,js}` in the project directory
(or the legacy `build/config.server.js`) if present.

#### Example

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

***

### ssrParameters?

> `optional` **ssrParameters**: `Record`\<`string`, `unknown`\>

Defined in: [packages/b2c-tooling-sdk/src/operations/mrt/bundle.ts:63](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/1dedfc1ffefa01c3d5bff62c8f7e7e682a1a91cd/packages/b2c-tooling-sdk/src/operations/mrt/bundle.ts#L63)

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

***

### ssrShared?

> `optional` **ssrShared**: `string`[]

Defined in: [packages/b2c-tooling-sdk/src/operations/mrt/bundle.ts:79](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/1dedfc1ffefa01c3d5bff62c8f7e7e682a1a91cd/packages/b2c-tooling-sdk/src/operations/mrt/bundle.ts#L79)

Glob patterns for files shared between client and server.
If omitted, loaded from `config.server.{ts,js}` in the project directory
(or the legacy `build/config.server.js`) if present.

#### Example

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