@gigadrive/network-config 3.1.2 → 3.2.0

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.mjs CHANGED
@@ -668,6 +668,10 @@ var filterFunctionsFromAssets = (config) => {
668
668
  };
669
669
  };
670
670
 
671
+ // src/normalized-config.ts
672
+ var DEFAULT_FUNCTION_DURATION_SECONDS = 30;
673
+ var MAX_FUNCTION_DURATION_SECONDS = 28800;
674
+
671
675
  // src/parse-config.ts
672
676
  import { Effect as Effect13 } from "effect";
673
677
 
@@ -791,7 +795,7 @@ var MAX_ASSET_DEPTH = 100;
791
795
  var DISALLOWED_ASSET_EXTENSIONS = [".htaccess", ".htpasswd"];
792
796
  var DEFAULT_FUNCTION_SETTINGS = {
793
797
  memory: 128,
794
- max_duration: 30,
798
+ max_duration: DEFAULT_FUNCTION_DURATION_SECONDS,
795
799
  schedule: void 0,
796
800
  symlinks: void 0,
797
801
  excludeFiles: void 0,
@@ -888,7 +892,7 @@ var parseEntrypoints = Effect10.fn("parseEntrypoints")(function* (config, projec
888
892
  path: file,
889
893
  runtime,
890
894
  memory: settings.memory ?? 128,
891
- maxDuration: settings.max_duration ?? 30,
895
+ maxDuration: settings.max_duration ?? DEFAULT_FUNCTION_DURATION_SECONDS,
892
896
  schedule: func.schedule,
893
897
  symlinks: func.symlinks,
894
898
  streaming,
@@ -1293,8 +1297,8 @@ var schema_default = {
1293
1297
  },
1294
1298
  max_duration: {
1295
1299
  type: "number",
1296
- description: "The max duration in seconds for the function after which it will be terminated. Defaults to 30.",
1297
- maximum: 900,
1300
+ description: "The maximum lifetime in seconds of one HTTP request, response stream, or WebSocket connection. Defaults to 30. The reusable execution environment is not terminated with the invocation.",
1301
+ maximum: 28800,
1298
1302
  minimum: 1
1299
1303
  },
1300
1304
  runtime: {
@@ -1643,9 +1647,11 @@ export {
1643
1647
  ConfigFileParseError,
1644
1648
  ConfigSchemaValidationError,
1645
1649
  ConfigVersionError,
1650
+ DEFAULT_FUNCTION_DURATION_SECONDS,
1646
1651
  FRAMEWORK_DEFINITIONS,
1647
1652
  FrameworkNotDetectedError,
1648
1653
  FunctionConfigError,
1654
+ MAX_FUNCTION_DURATION_SECONDS,
1649
1655
  ManifestNotFoundError,
1650
1656
  ManifestParseError,
1651
1657
  ManifestReadError,