decord/source/modules/gateway/GatewayAltEndpointExperiment.tsx

21 lines
906 B
TypeScript
Raw Normal View History

// Module ID: 14552
// Function ID: 14553
2026-07-20 16:05:17 +00:00
// Name: USE_ALT_GATEWAY_KEY
// Dependencies: [1433, 2, 14553]
2026-07-20 16:05:17 +00:00
// Exports: useShouldUseAltGateway
// Module 14552 (USE_ALT_GATEWAY_KEY)
2026-08-24 06:08:38 +00:00
import set from "set" /* 2 */;
import USE_ALT_GATEWAY_KEY from "USE_ALT_GATEWAY_KEY" /* 14553 */;
import ApexExperiment from "ApexExperiment" /* 1433 */;
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
const obj = { 1: null, 2: { enableAltGateway: false } };
obj[2] = { enableAltGateway: true };
let closure_0 = ApexExperiment.createApexExperiment({ name: "2026-07-aws-gateway", kind: "user", defaultConfig: { enableAltGateway: false }, variations: obj });
2026-08-24 06:08:38 +00:00
const result = set.fileFinishedImporting("modules/gateway/GatewayAltEndpointExperiment.tsx");
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
export const USE_ALT_GATEWAY_KEY = USE_ALT_GATEWAY_KEY.USE_ALT_GATEWAY_KEY;
2026-07-20 16:05:17 +00:00
export const useShouldUseAltGateway = function useShouldUseAltGateway(App) {
return closure_0.useConfig({ location: App }).enableAltGateway;
};