---
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/36eea0d308f1312d1a446ec8813ed30b0bdba62c/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)
