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

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

# Function: maxArchiveBytesFromConfig()

> **maxArchiveBytesFromConfig**(`value`): `number` \| `undefined`

Defined in: [packages/b2c-tooling-sdk/src/operations/code/archive.ts:50](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/d7ff38c7ca2b1411cd718b9554500c9416f00266/packages/b2c-tooling-sdk/src/operations/code/archive.ts#L50)

Converts the `maxArchiveSize` config value (e.g. `"200mb"`, `"150"`) to
bytes, or `undefined` to use [DEFAULT\_MAX\_ARCHIVE\_BYTES](../variables/DEFAULT_MAX_ARCHIVE_BYTES.md).

## Parameters

### value

`string` | `undefined`

## Returns

`number` \| `undefined`

## Throws

Error if the value is not a valid size
