@hot-updater/aws 1.0.0-rc.40 → 1.0.0-rc.42

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -9,6 +9,7 @@ let _aws_sdk_client_s3 = require("@aws-sdk/client-s3");
9
9
  let _aws_sdk_lib_storage = require("@aws-sdk/lib-storage");
10
10
  let _hot_updater_server_plugins_api_keys = require("@hot-updater/server/plugins/api-keys");
11
11
  let _hot_updater_server_plugins_insights = require("@hot-updater/server/plugins/insights");
12
+ let _hot_updater_server_plugins_remote_config = require("@hot-updater/server/plugins/remote-config");
12
13
  //#region src/cloudFrontInvalidation.ts
13
14
  const DEFAULT_POLL_INTERVAL_MS = 2e3;
14
15
  const DEFAULT_TIMEOUT_MS = 3e5;
@@ -583,10 +584,14 @@ function s3Storage(config) {
583
584
  //#endregion
584
585
  //#region src/plugins.ts
585
586
  /**
586
- * The plugins the managed AWS server runs: Insights, and API keys on every
587
- * client route. Its Lambda@Edge function imports this list.
587
+ * The plugins the managed AWS server runs: Insights, API keys on every
588
+ * client route, and Remote Config. Its Lambda@Edge function imports this list.
588
589
  */
589
- const plugins = [(0, _hot_updater_server_plugins_insights.insights)(), (0, _hot_updater_server_plugins_api_keys.apiKeys)()];
590
+ const plugins = [
591
+ (0, _hot_updater_server_plugins_insights.insights)(),
592
+ (0, _hot_updater_server_plugins_api_keys.apiKeys)(),
593
+ (0, _hot_updater_server_plugins_remote_config.remoteConfig)()
594
+ ];
590
595
  //#endregion
591
596
  exports.cloudFrontDownloadUrl = cloudFrontDownloadUrl;
592
597
  exports.dynamoDB = dynamoDB;
package/dist/index.d.cts CHANGED
@@ -398,10 +398,198 @@ interface CreatedApiKey {
398
398
  readonly record: ApiKeyMetadata;
399
399
  }
400
400
  //#endregion
401
+ //#region ../remote-config/dist/shared/wire.d.mts
402
+ //#region src/shared/wire.d.ts
403
+ /** What a device tells the server, so the server can evaluate conditions. */
404
+ interface RemoteConfigDeviceContext {
405
+ readonly platform: "ios" | "android";
406
+ /** The native app version, or null when the build has none. */
407
+ readonly appVersion: string | null;
408
+ readonly channel: string;
409
+ /** A numeric cohort from 1 to 1000, or a custom cohort's slug. */
410
+ readonly cohort: string;
411
+ /** The native build's fingerprint, or null without one. */
412
+ readonly fingerprintHash: string | null;
413
+ }
414
+ /** The body of a `200` from `GET /remote-config`. */
415
+ interface RemoteConfigFetchResponse {
416
+ /** The published template version the values come from; 0 before the first publish. */
417
+ readonly version: number;
418
+ /**
419
+ * Each parameter's value for this device, as text. A parameter whose
420
+ * value is the app's own default is left out.
421
+ */
422
+ readonly values: Readonly<Record<string, string>>;
423
+ }
424
+ //#endregion
425
+ //#region ../remote-config/dist/server/template.d.mts
426
+ //#region src/server/template.d.ts
427
+ /**
428
+ * How the Console edits a parameter's value and checks it before a publish.
429
+ * Devices receive every value as text.
430
+ */
431
+ type RemoteConfigValueType = "STRING" | "NUMBER" | "BOOLEAN" | "JSON";
432
+ /** A value a parameter takes: text, or the app's own default. */
433
+ type RemoteConfigParameterValue = {
434
+ readonly value: string;
435
+ } | {
436
+ readonly useInAppDefault: true;
437
+ };
438
+ interface RemoteConfigParameter {
439
+ readonly valueType: RemoteConfigValueType;
440
+ /** The value when none of the parameter's conditions match. */
441
+ readonly defaultValue: RemoteConfigParameterValue;
442
+ /**
443
+ * Values by condition name. When several of these conditions match, the
444
+ * one listed first in the template's `conditions` wins.
445
+ */
446
+ readonly conditionalValues?: Readonly<Record<string, RemoteConfigParameterValue>>;
447
+ readonly description?: string;
448
+ }
449
+ /** A test on a device's context; a condition matches when all of its rules do. */
450
+ type RemoteConfigRule = {
451
+ readonly type: "platform";
452
+ readonly platforms: readonly ("ios" | "android")[];
453
+ } | {
454
+ readonly type: "channel";
455
+ readonly channels: readonly string[];
456
+ } |
457
+ /** A semver range, such as `>=1.4.0` or `2.x`, as release targets use. */
458
+ {
459
+ readonly type: "appVersion";
460
+ readonly range: string;
461
+ } |
462
+ /** Devices whose cohort is one of these: numbers from 1 to 1000 or slugs. */
463
+ {
464
+ readonly type: "cohort";
465
+ readonly cohorts: readonly string[];
466
+ } |
467
+ /**
468
+ * A share of numeric cohorts: the devices whose cohort lands in
469
+ * `[from, to)` percent once `seed` shuffles the 1,000 cohorts. Rules with
470
+ * one seed pick from one order, so `0–10` and `10–20` never overlap; a new
471
+ * seed picks other devices. Custom cohorts never match.
472
+ */
473
+ {
474
+ readonly type: "percent";
475
+ readonly seed: string;
476
+ readonly from: number;
477
+ readonly to: number;
478
+ } | {
479
+ readonly type: "fingerprint";
480
+ readonly hashes: readonly string[];
481
+ } |
482
+ /**
483
+ * While the server's clock is in `[from, to)`: ISO 8601 date-times in UTC,
484
+ * either of them open. A device gets the change at its next fetch.
485
+ */
486
+ {
487
+ readonly type: "dateTime";
488
+ readonly from?: string;
489
+ readonly to?: string;
490
+ };
491
+ interface RemoteConfigCondition {
492
+ /** Unique in the template; parameters name it in `conditionalValues`. */
493
+ readonly name: string;
494
+ /** Every rule must match. */
495
+ readonly rules: readonly RemoteConfigRule[];
496
+ }
497
+ /**
498
+ * Everything Remote Config serves, published as a whole and versioned.
499
+ */
500
+ interface RemoteConfigTemplate {
501
+ /** In priority order: the first one that matches decides a parameter's value. */
502
+ readonly conditions: readonly RemoteConfigCondition[];
503
+ readonly parameters: Readonly<Record<string, RemoteConfigParameter>>;
504
+ }
505
+ /** What the server knows of a device; a rule on a missing field never matches. */
506
+ type RemoteConfigEvaluationContext = Partial<Readonly<{ [K in keyof RemoteConfigDeviceContext]: RemoteConfigDeviceContext[K] | null; }>> & {
507
+ /**
508
+ * When to evaluate, in ms since the epoch. The server uses its own clock;
509
+ * a `dateTime` rule never matches without it.
510
+ */
511
+ readonly now?: number;
512
+ };
513
+ //#endregion
514
+ //#region ../remote-config/dist/server/api.d.mts
515
+ //#region src/server/api.d.ts
516
+ /** A published version's record, without its template. */
517
+ interface RemoteConfigVersion {
518
+ readonly version: number;
519
+ readonly description: string | null;
520
+ /** `ROLLBACK` when the version copies `rollbackSource`. */
521
+ readonly updateType: "PUBLISH" | "ROLLBACK";
522
+ readonly rollbackSource: number | null;
523
+ readonly createdAtMs: number;
524
+ }
525
+ interface RemoteConfigVersionDetail extends RemoteConfigVersion {
526
+ readonly template: RemoteConfigTemplate;
527
+ }
528
+ /** The template devices receive now. */
529
+ interface RemoteConfigActive {
530
+ /** 0, with an empty template, before the first publish. */
531
+ readonly version: number;
532
+ readonly template: RemoteConfigTemplate;
533
+ readonly updatedAtMs: number | null;
534
+ }
535
+ /**
536
+ * How a publish or a rollback ended: `conflict` when another publish moved
537
+ * the active version past `baseVersion` first, so a stale edit never
538
+ * replaces a newer template.
539
+ */
540
+ type RemoteConfigPublishResult = {
541
+ readonly status: "published";
542
+ readonly version: RemoteConfigVersion;
543
+ } | {
544
+ readonly status: "conflict";
545
+ readonly currentVersion: number;
546
+ };
547
+ interface RemoteConfigVersionsPage {
548
+ /** Newest first. */
549
+ readonly versions: readonly RemoteConfigVersion[];
550
+ /** Pass as `cursor` for the next page; absent on the last one. */
551
+ readonly next?: string;
552
+ }
553
+ /** `hotUpdater.api.remoteConfig`. */
554
+ interface RemoteConfigApi {
555
+ /** The active template and its version. */
556
+ getActive(): Promise<RemoteConfigActive>;
557
+ /**
558
+ * Validates and publishes a template as the next version. Throws
559
+ * `RemoteConfigValidationError` for an invalid template.
560
+ */
561
+ publish(input: {
562
+ readonly template: unknown;
563
+ /** The version the edit started from; 0 before the first publish. */
564
+ readonly baseVersion: number;
565
+ readonly description?: string;
566
+ }): Promise<RemoteConfigPublishResult>;
567
+ /** Publishes a copy of an earlier version; `not_found` when it does not exist. */
568
+ rollback(input: {
569
+ readonly version: number;
570
+ readonly baseVersion: number;
571
+ readonly description?: string;
572
+ }): Promise<RemoteConfigPublishResult | {
573
+ readonly status: "not_found";
574
+ }>;
575
+ /** One page of published versions, newest first. */
576
+ listVersions(input?: {
577
+ readonly limit?: number;
578
+ readonly cursor?: string;
579
+ }): Promise<RemoteConfigVersionsPage>;
580
+ /** One version with its template, or null. */
581
+ getVersion(version: number): Promise<RemoteConfigVersionDetail | null>;
582
+ /**
583
+ * What a device with this context receives from `GET /remote-config`, at
584
+ * `context.now` or, without it, now.
585
+ */
586
+ resolve(context: RemoteConfigEvaluationContext): Promise<RemoteConfigFetchResponse>;
587
+ }
588
+ //#endregion
401
589
  //#region src/plugins.d.ts
402
590
  /**
403
- * The plugins the managed AWS server runs: Insights, and API keys on every
404
- * client route. Its Lambda@Edge function imports this list.
591
+ * The plugins the managed AWS server runs: Insights, API keys on every
592
+ * client route, and Remote Config. Its Lambda@Edge function imports this list.
405
593
  */
406
594
  declare const plugins: readonly [import("@hot-updater/plugin-core").HotUpdaterPlugin<"insights", {
407
595
  readonly bundle_events: import("@hot-updater/plugin-core").TableDefinition<{
@@ -843,6 +1031,54 @@ declare const plugins: readonly [import("@hot-updater/plugin-core").HotUpdaterPl
843
1031
  };
844
1032
  }, {
845
1033
  readonly clientAuth: true;
846
- }>];
1034
+ }>, import("@hot-updater/plugin-core").HotUpdaterPlugin<"remoteConfig", {
1035
+ readonly remote_config_active: import("@hot-updater/plugin-core").TableDefinition<{
1036
+ readonly id: {
1037
+ readonly type: "string";
1038
+ readonly maxLength: 16;
1039
+ };
1040
+ readonly version: {
1041
+ readonly type: "integer";
1042
+ };
1043
+ readonly template: {
1044
+ readonly type: "json";
1045
+ };
1046
+ readonly updated_at_ms: {
1047
+ readonly type: "integer";
1048
+ };
1049
+ }, {}, {}, readonly ["id"]>;
1050
+ readonly remote_config_versions: import("@hot-updater/plugin-core").TableDefinition<{
1051
+ readonly version: {
1052
+ readonly type: "integer";
1053
+ };
1054
+ readonly template: {
1055
+ readonly type: "json";
1056
+ };
1057
+ readonly description: {
1058
+ readonly type: "string";
1059
+ readonly maxLength: 256;
1060
+ readonly required: false;
1061
+ };
1062
+ readonly update_type: {
1063
+ readonly type: "string";
1064
+ readonly maxLength: 16;
1065
+ };
1066
+ readonly rollback_source: {
1067
+ readonly type: "integer";
1068
+ readonly required: false;
1069
+ };
1070
+ readonly created_at_ms: {
1071
+ readonly type: "integer";
1072
+ };
1073
+ }, {}, {
1074
+ readonly byVersion: {
1075
+ readonly eq: readonly [];
1076
+ readonly sort: readonly ["version"];
1077
+ };
1078
+ }, readonly ["version"]>;
1079
+ }, {
1080
+ api: RemoteConfigApi;
1081
+ endpoints: readonly import("@hot-updater/plugin-core").PluginEndpoint[];
1082
+ }, {}>];
847
1083
  //#endregion
848
1084
  export { CloudFrontDownloadUrlOptions, type DynamoDBConfig, S3StorageConfig, S3StorageConfigWithDownloadUrl, cloudFrontDownloadUrl, dynamoDB, migrateDynamoDB, plugins, s3Storage };
package/dist/index.d.mts CHANGED
@@ -398,10 +398,198 @@ interface CreatedApiKey {
398
398
  readonly record: ApiKeyMetadata;
399
399
  }
400
400
  //#endregion
401
+ //#region ../remote-config/dist/shared/wire.d.mts
402
+ //#region src/shared/wire.d.ts
403
+ /** What a device tells the server, so the server can evaluate conditions. */
404
+ interface RemoteConfigDeviceContext {
405
+ readonly platform: "ios" | "android";
406
+ /** The native app version, or null when the build has none. */
407
+ readonly appVersion: string | null;
408
+ readonly channel: string;
409
+ /** A numeric cohort from 1 to 1000, or a custom cohort's slug. */
410
+ readonly cohort: string;
411
+ /** The native build's fingerprint, or null without one. */
412
+ readonly fingerprintHash: string | null;
413
+ }
414
+ /** The body of a `200` from `GET /remote-config`. */
415
+ interface RemoteConfigFetchResponse {
416
+ /** The published template version the values come from; 0 before the first publish. */
417
+ readonly version: number;
418
+ /**
419
+ * Each parameter's value for this device, as text. A parameter whose
420
+ * value is the app's own default is left out.
421
+ */
422
+ readonly values: Readonly<Record<string, string>>;
423
+ }
424
+ //#endregion
425
+ //#region ../remote-config/dist/server/template.d.mts
426
+ //#region src/server/template.d.ts
427
+ /**
428
+ * How the Console edits a parameter's value and checks it before a publish.
429
+ * Devices receive every value as text.
430
+ */
431
+ type RemoteConfigValueType = "STRING" | "NUMBER" | "BOOLEAN" | "JSON";
432
+ /** A value a parameter takes: text, or the app's own default. */
433
+ type RemoteConfigParameterValue = {
434
+ readonly value: string;
435
+ } | {
436
+ readonly useInAppDefault: true;
437
+ };
438
+ interface RemoteConfigParameter {
439
+ readonly valueType: RemoteConfigValueType;
440
+ /** The value when none of the parameter's conditions match. */
441
+ readonly defaultValue: RemoteConfigParameterValue;
442
+ /**
443
+ * Values by condition name. When several of these conditions match, the
444
+ * one listed first in the template's `conditions` wins.
445
+ */
446
+ readonly conditionalValues?: Readonly<Record<string, RemoteConfigParameterValue>>;
447
+ readonly description?: string;
448
+ }
449
+ /** A test on a device's context; a condition matches when all of its rules do. */
450
+ type RemoteConfigRule = {
451
+ readonly type: "platform";
452
+ readonly platforms: readonly ("ios" | "android")[];
453
+ } | {
454
+ readonly type: "channel";
455
+ readonly channels: readonly string[];
456
+ } |
457
+ /** A semver range, such as `>=1.4.0` or `2.x`, as release targets use. */
458
+ {
459
+ readonly type: "appVersion";
460
+ readonly range: string;
461
+ } |
462
+ /** Devices whose cohort is one of these: numbers from 1 to 1000 or slugs. */
463
+ {
464
+ readonly type: "cohort";
465
+ readonly cohorts: readonly string[];
466
+ } |
467
+ /**
468
+ * A share of numeric cohorts: the devices whose cohort lands in
469
+ * `[from, to)` percent once `seed` shuffles the 1,000 cohorts. Rules with
470
+ * one seed pick from one order, so `0–10` and `10–20` never overlap; a new
471
+ * seed picks other devices. Custom cohorts never match.
472
+ */
473
+ {
474
+ readonly type: "percent";
475
+ readonly seed: string;
476
+ readonly from: number;
477
+ readonly to: number;
478
+ } | {
479
+ readonly type: "fingerprint";
480
+ readonly hashes: readonly string[];
481
+ } |
482
+ /**
483
+ * While the server's clock is in `[from, to)`: ISO 8601 date-times in UTC,
484
+ * either of them open. A device gets the change at its next fetch.
485
+ */
486
+ {
487
+ readonly type: "dateTime";
488
+ readonly from?: string;
489
+ readonly to?: string;
490
+ };
491
+ interface RemoteConfigCondition {
492
+ /** Unique in the template; parameters name it in `conditionalValues`. */
493
+ readonly name: string;
494
+ /** Every rule must match. */
495
+ readonly rules: readonly RemoteConfigRule[];
496
+ }
497
+ /**
498
+ * Everything Remote Config serves, published as a whole and versioned.
499
+ */
500
+ interface RemoteConfigTemplate {
501
+ /** In priority order: the first one that matches decides a parameter's value. */
502
+ readonly conditions: readonly RemoteConfigCondition[];
503
+ readonly parameters: Readonly<Record<string, RemoteConfigParameter>>;
504
+ }
505
+ /** What the server knows of a device; a rule on a missing field never matches. */
506
+ type RemoteConfigEvaluationContext = Partial<Readonly<{ [K in keyof RemoteConfigDeviceContext]: RemoteConfigDeviceContext[K] | null; }>> & {
507
+ /**
508
+ * When to evaluate, in ms since the epoch. The server uses its own clock;
509
+ * a `dateTime` rule never matches without it.
510
+ */
511
+ readonly now?: number;
512
+ };
513
+ //#endregion
514
+ //#region ../remote-config/dist/server/api.d.mts
515
+ //#region src/server/api.d.ts
516
+ /** A published version's record, without its template. */
517
+ interface RemoteConfigVersion {
518
+ readonly version: number;
519
+ readonly description: string | null;
520
+ /** `ROLLBACK` when the version copies `rollbackSource`. */
521
+ readonly updateType: "PUBLISH" | "ROLLBACK";
522
+ readonly rollbackSource: number | null;
523
+ readonly createdAtMs: number;
524
+ }
525
+ interface RemoteConfigVersionDetail extends RemoteConfigVersion {
526
+ readonly template: RemoteConfigTemplate;
527
+ }
528
+ /** The template devices receive now. */
529
+ interface RemoteConfigActive {
530
+ /** 0, with an empty template, before the first publish. */
531
+ readonly version: number;
532
+ readonly template: RemoteConfigTemplate;
533
+ readonly updatedAtMs: number | null;
534
+ }
535
+ /**
536
+ * How a publish or a rollback ended: `conflict` when another publish moved
537
+ * the active version past `baseVersion` first, so a stale edit never
538
+ * replaces a newer template.
539
+ */
540
+ type RemoteConfigPublishResult = {
541
+ readonly status: "published";
542
+ readonly version: RemoteConfigVersion;
543
+ } | {
544
+ readonly status: "conflict";
545
+ readonly currentVersion: number;
546
+ };
547
+ interface RemoteConfigVersionsPage {
548
+ /** Newest first. */
549
+ readonly versions: readonly RemoteConfigVersion[];
550
+ /** Pass as `cursor` for the next page; absent on the last one. */
551
+ readonly next?: string;
552
+ }
553
+ /** `hotUpdater.api.remoteConfig`. */
554
+ interface RemoteConfigApi {
555
+ /** The active template and its version. */
556
+ getActive(): Promise<RemoteConfigActive>;
557
+ /**
558
+ * Validates and publishes a template as the next version. Throws
559
+ * `RemoteConfigValidationError` for an invalid template.
560
+ */
561
+ publish(input: {
562
+ readonly template: unknown;
563
+ /** The version the edit started from; 0 before the first publish. */
564
+ readonly baseVersion: number;
565
+ readonly description?: string;
566
+ }): Promise<RemoteConfigPublishResult>;
567
+ /** Publishes a copy of an earlier version; `not_found` when it does not exist. */
568
+ rollback(input: {
569
+ readonly version: number;
570
+ readonly baseVersion: number;
571
+ readonly description?: string;
572
+ }): Promise<RemoteConfigPublishResult | {
573
+ readonly status: "not_found";
574
+ }>;
575
+ /** One page of published versions, newest first. */
576
+ listVersions(input?: {
577
+ readonly limit?: number;
578
+ readonly cursor?: string;
579
+ }): Promise<RemoteConfigVersionsPage>;
580
+ /** One version with its template, or null. */
581
+ getVersion(version: number): Promise<RemoteConfigVersionDetail | null>;
582
+ /**
583
+ * What a device with this context receives from `GET /remote-config`, at
584
+ * `context.now` or, without it, now.
585
+ */
586
+ resolve(context: RemoteConfigEvaluationContext): Promise<RemoteConfigFetchResponse>;
587
+ }
588
+ //#endregion
401
589
  //#region src/plugins.d.ts
402
590
  /**
403
- * The plugins the managed AWS server runs: Insights, and API keys on every
404
- * client route. Its Lambda@Edge function imports this list.
591
+ * The plugins the managed AWS server runs: Insights, API keys on every
592
+ * client route, and Remote Config. Its Lambda@Edge function imports this list.
405
593
  */
406
594
  declare const plugins: readonly [import("@hot-updater/plugin-core").HotUpdaterPlugin<"insights", {
407
595
  readonly bundle_events: import("@hot-updater/plugin-core").TableDefinition<{
@@ -843,6 +1031,54 @@ declare const plugins: readonly [import("@hot-updater/plugin-core").HotUpdaterPl
843
1031
  };
844
1032
  }, {
845
1033
  readonly clientAuth: true;
846
- }>];
1034
+ }>, import("@hot-updater/plugin-core").HotUpdaterPlugin<"remoteConfig", {
1035
+ readonly remote_config_active: import("@hot-updater/plugin-core").TableDefinition<{
1036
+ readonly id: {
1037
+ readonly type: "string";
1038
+ readonly maxLength: 16;
1039
+ };
1040
+ readonly version: {
1041
+ readonly type: "integer";
1042
+ };
1043
+ readonly template: {
1044
+ readonly type: "json";
1045
+ };
1046
+ readonly updated_at_ms: {
1047
+ readonly type: "integer";
1048
+ };
1049
+ }, {}, {}, readonly ["id"]>;
1050
+ readonly remote_config_versions: import("@hot-updater/plugin-core").TableDefinition<{
1051
+ readonly version: {
1052
+ readonly type: "integer";
1053
+ };
1054
+ readonly template: {
1055
+ readonly type: "json";
1056
+ };
1057
+ readonly description: {
1058
+ readonly type: "string";
1059
+ readonly maxLength: 256;
1060
+ readonly required: false;
1061
+ };
1062
+ readonly update_type: {
1063
+ readonly type: "string";
1064
+ readonly maxLength: 16;
1065
+ };
1066
+ readonly rollback_source: {
1067
+ readonly type: "integer";
1068
+ readonly required: false;
1069
+ };
1070
+ readonly created_at_ms: {
1071
+ readonly type: "integer";
1072
+ };
1073
+ }, {}, {
1074
+ readonly byVersion: {
1075
+ readonly eq: readonly [];
1076
+ readonly sort: readonly ["version"];
1077
+ };
1078
+ }, readonly ["version"]>;
1079
+ }, {
1080
+ api: RemoteConfigApi;
1081
+ endpoints: readonly import("@hot-updater/plugin-core").PluginEndpoint[];
1082
+ }, {}>];
847
1083
  //#endregion
848
1084
  export { CloudFrontDownloadUrlOptions, type DynamoDBConfig, S3StorageConfig, S3StorageConfigWithDownloadUrl, cloudFrontDownloadUrl, dynamoDB, migrateDynamoDB, plugins, s3Storage };
package/dist/index.mjs CHANGED
@@ -8,6 +8,7 @@ import { DeleteObjectCommand, DeleteObjectsCommand, GetObjectCommand, HeadObject
8
8
  import { Upload } from "@aws-sdk/lib-storage";
9
9
  import { apiKeys } from "@hot-updater/server/plugins/api-keys";
10
10
  import { insights } from "@hot-updater/server/plugins/insights";
11
+ import { remoteConfig } from "@hot-updater/server/plugins/remote-config";
11
12
  //#region src/cloudFrontInvalidation.ts
12
13
  const DEFAULT_POLL_INTERVAL_MS = 2e3;
13
14
  const DEFAULT_TIMEOUT_MS = 3e5;
@@ -582,9 +583,13 @@ function s3Storage(config) {
582
583
  //#endregion
583
584
  //#region src/plugins.ts
584
585
  /**
585
- * The plugins the managed AWS server runs: Insights, and API keys on every
586
- * client route. Its Lambda@Edge function imports this list.
586
+ * The plugins the managed AWS server runs: Insights, API keys on every
587
+ * client route, and Remote Config. Its Lambda@Edge function imports this list.
587
588
  */
588
- const plugins = [insights(), apiKeys()];
589
+ const plugins = [
590
+ insights(),
591
+ apiKeys(),
592
+ remoteConfig()
593
+ ];
589
594
  //#endregion
590
595
  export { cloudFrontDownloadUrl, dynamoDB, migrateDynamoDB, plugins, s3Storage };