BuildEnv

utils · /index·type

Environment metadata captured once at build time.

Properties

environment
'development' | 'preview' | 'production'
gitSHA
string
isDev
boolean

Example

const { isDev, environment, gitSHA } = resolveBuildEnv();

ParsedHost AppName DevTld Hostname ShopHandle appFromHost isDevelopment isDevHost

Sourceenv.ts:11Edit the JSDoc directly
Metadata@nordcom/commerce-utils@0.0.0Open in GitHub ↗

On this page