isProduction

utils · /index·function

Whether the current runtime is a real production deployment.

Signature

@nordcom/commerce-utils
function isProduction(): boolean;

Returns

true only when NODE_ENV is 'production' and the deploy is not a Vercel preview.

ParsedHost AppName BuildEnv DevTld Hostname ShopHandle appFromHost isDevelopment

Metadata@nordcom/commerce-utils@0.0.0Open in GitHub ↗

On this page