ci-info.js 836 B

1234567891011121314151617181920212223
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.hasNextSupport = exports.name = exports.isCI = void 0;
  6. var _ciInfo = _interopRequireDefault(require("next/dist/compiled/ci-info"));
  7. function _interopRequireDefault(obj) {
  8. return obj && obj.__esModule ? obj : {
  9. default: obj
  10. };
  11. }
  12. const { isCI: _isCI , name: _name } = _ciInfo.default;
  13. const isZeitNow = !!process.env.NOW_BUILDER;
  14. const envStack = process.env.STACK;
  15. const isHeroku = typeof envStack === "string" && envStack.toLowerCase().includes("heroku");
  16. const isCI = isZeitNow || isHeroku || _isCI;
  17. exports.isCI = isCI;
  18. const name = isZeitNow ? "ZEIT Now" : isHeroku ? "Heroku" : _name;
  19. exports.name = name;
  20. const hasNextSupport = Boolean(isZeitNow);
  21. exports.hasNextSupport = hasNextSupport;
  22. //# sourceMappingURL=ci-info.js.map