UNPKG

@lark-project/cli

Version:

飞书项目插件开发工具

41 lines (40 loc) 1.16 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.env = void 0; exports.env = { get isTTY() { return process.stdout.isTTY; }, get platform() { return process.platform; }, get host() { return process.env.LPM_HOST || '0.0.0.0'; // 0.0.0.0 代表 localhost + 本地 IPV4 }, // 用于配置 2.0 dev server 返回的资源地址的 origin get originForDevServer() { return process.env.LPM_ORIGIN_FOR_DEV_SERVER; }, get sockPath() { return process.env.LPM_SOCKET_PATH || '/ws'; }, get sockPort() { return process.env.LPM_SOCKET_PORT; }, get sockHost() { return process.env.LPM_SOCKET_HOST; }, get debug() { const isDebug = ['true', '1'].includes(process.env.LPM_DEBUG); return isDebug || false; }, get ttEnv() { return process.env.LPM_TT_ENV || undefined; }, get disableHttps() { return ['true', '1'].includes(process.env.LPM_DISABLE_HTTPS) || false; }, get skipLatestValid() { return process.env.LPM_SKIP_LATEST_VALIDATE || false; }, };