@forge/cli-shared
9.8.0-next.9-experimental-e03cc859.8.0-next.10
out/graphql/gateway.js~
out/graphql/gateway.jsModified+10−1
Index: package/out/graphql/gateway.js
===================================================================
--- package/out/graphql/gateway.js
+++ package/out/graphql/gateway.js
@@ -1,12 +1,21 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
-exports.isFedrampEnv = exports.getEnvironmentConfig = exports.CDNEnvironments = exports.Environments = exports.getGraphqlGateway = exports.DEFAULT_GRAPHQL_GATEWAY = void 0;
+exports.isFedrampEnv = exports.getEnvironmentConfig = exports.CDNEnvironments = exports.Environments = exports.isPathBasedRoutingEnabled = exports.isBluebirdEnabled = exports.STAGING_PRIVATE_GRAPHQL_GATEWAY = exports.getGraphqlGateway = exports.DEFAULT_GRAPHQL_GATEWAY = void 0;
exports.DEFAULT_GRAPHQL_GATEWAY = 'https://api.atlassian.com/graphql';
const getGraphqlGateway = () => {
return process.env.FORGE_GRAPHQL_GATEWAY || exports.DEFAULT_GRAPHQL_GATEWAY;
};
exports.getGraphqlGateway = getGraphqlGateway;
+exports.STAGING_PRIVATE_GRAPHQL_GATEWAY = 'https://api-private.stg.atlassian.com/graphql';
+const isBluebirdEnabled = () => {
+ return (process.env.FORGE_BLUEBIRD_ENABLED ?? '').trim().toLowerCase() === 'true';
+};
+exports.isBluebirdEnabled = isBluebirdEnabled;
+const isPathBasedRoutingEnabled = () => {
+ return (0, exports.getGraphqlGateway)().trim() === exports.STAGING_PRIVATE_GRAPHQL_GATEWAY && (0, exports.isBluebirdEnabled)();
+};
+exports.isPathBasedRoutingEnabled = isPathBasedRoutingEnabled;
var Environments;
(function (Environments) {
Environments["DEV"] = "dev";
Environments["STG"] = "staging";