code-server/packages/server/src/constants.ts

6 lines
329 B
TypeScript
Raw Normal View History

2019-03-07 17:24:25 +00:00
import * as path from "path";
2019-02-07 17:47:00 +00:00
export const isCli = typeof process.env.CLI !== "undefined" && process.env.CLI !== "false";
export const serveStatic = typeof process.env.SERVE_STATIC !== "undefined" && process.env.SERVE_STATIC !== "false";
2019-03-07 17:24:25 +00:00
export const buildDir = process.env.BUILD_DIR ? path.resolve(process.env.BUILD_DIR) : "";