decord/source/modules/gateway/GatewayAltEndpointExperiment.tsx

21 lines
906 B
TypeScript
Raw Normal View History

2026-08-25 06:04:03 +00:00
// Module ID: 14020
// Function ID: 14021
2026-07-20 16:05:17 +00:00
// Name: USE_ALT_GATEWAY_KEY
2026-08-25 06:04:03 +00:00
// Dependencies: [1472, 2, 14021]
2026-07-20 16:05:17 +00:00
// Exports: useShouldUseAltGateway
2026-08-25 06:04:03 +00:00
// Module 14020 (USE_ALT_GATEWAY_KEY)
2026-08-24 06:08:38 +00:00
import set from "set" /* 2 */;
2026-08-25 06:04:03 +00:00
import USE_ALT_GATEWAY_KEY from "USE_ALT_GATEWAY_KEY" /* 14021 */;
2026-08-24 06:08:38 +00:00
import ApexExperiment from "ApexExperiment" /* 1472 */;
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;
};