Açıklama Yok
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

getDefaultHostingSite.js 706B

12345678910111213141516
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.getDefaultHostingSite = void 0;
  4. const logger_1 = require("./logger");
  5. const projects_1 = require("./management/projects");
  6. async function getDefaultHostingSite(options) {
  7. var _a;
  8. const project = await (0, projects_1.getFirebaseProject)(options.project);
  9. const site = (_a = project.resources) === null || _a === void 0 ? void 0 : _a.hostingSite;
  10. if (!site) {
  11. logger_1.logger.debug(`No default hosting site found for project: ${options.project}. Using projectId as hosting site name.`);
  12. return options.project;
  13. }
  14. return site;
  15. }
  16. exports.getDefaultHostingSite = getDefaultHostingSite;