# getEnvironment

> **getEnvironment**(): [`ResolvedEnvironment`](/developers/references/core-sdk/index/type-aliases/resolvedenvironment/)

Defined in: config/environment.ts:145

The active environment. Defaults to production when nothing was set, so
standalone actions (`trackPurchaseStatus`, an early `ensureIdentity`) work
without a client.

## Returns

[`ResolvedEnvironment`](/developers/references/core-sdk/index/type-aliases/resolvedenvironment/)