Skip to content

@longmo-utils/node / isProduction

Function: isProduction()

ts
function isProduction(): boolean;

检查当前环境是否为生产环境

Returns

boolean

是否为生产环境

Example

ts
if (isProduction()) {
  console.log('Running in production mode')
}

Released under the MIT License.