暂无描述
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

remoteConfig.js 592B

1234567891011121314
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.ensureRemoteConfigTriggerRegion = void 0;
  4. const error_1 = require("../../../error");
  5. function ensureRemoteConfigTriggerRegion(endpoint) {
  6. if (!endpoint.eventTrigger.region) {
  7. endpoint.eventTrigger.region = "global";
  8. }
  9. if (endpoint.eventTrigger.region !== "global") {
  10. throw new error_1.FirebaseError("A remote config trigger must specify 'global' trigger location");
  11. }
  12. return Promise.resolve();
  13. }
  14. exports.ensureRemoteConfigTriggerRegion = ensureRemoteConfigTriggerRegion;