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

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

# Function: normalizeLegacyEnv()

> **normalizeLegacyEnv**(`env`): [`MrtEnvironmentView`](../interfaces/MrtEnvironmentView.md)

Defined in: [packages/b2c-tooling-sdk/src/operations/mrt/env.ts:1009](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/8fc17d8708d025c83fb0c44ca73198a200605153/packages/b2c-tooling-sdk/src/operations/mrt/env.ts#L1009)

Normalizes a legacy MRT environment ([MrtEnvironment](../type-aliases/MrtEnvironment.md)) into a
[MrtEnvironmentView](../interfaces/MrtEnvironmentView.md), carrying the legacy-only configuration fields
(hostname, external host/domain, cookies, source maps, log level, proxies) so
the shared view keeps the detail the old per-command printers showed.

## Parameters

### env

\{ \} | \{ \}

## Returns

[`MrtEnvironmentView`](../interfaces/MrtEnvironmentView.md)
