@vercel/build-utils 14.16.0 → 14.18.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/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # @vercel/build-utils
2
2
 
3
+ ## 14.18.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 94f6cea: Flat path `schedules` accept an optional `requestMethod` of `GET` or `POST`, defaulting to `POST`. `vercel build` writes it to Build Output, and `vercel dev` invokes path schedules with it.
8
+ - 3eeaad5: Move static file copying to build utils.
9
+
10
+ ### Patch Changes
11
+
12
+ - 8ac5320: Add an experimental workspace-scoped install path for Node builds to avoid installing unrelated monorepo workspaces.
13
+
14
+ ## 14.17.0
15
+
16
+ ### Minor Changes
17
+
18
+ - 28a7ab7: Build top-level `daemons` when `VERCEL_ENABLE_DAEMONS_BOA=1`: `vercel build` builds the project as usual, pushes each daemon's Dockerfile image, and writes a Build Output API descriptor to `daemons/<name>/.vc-config.json`.
19
+
20
+ ### Patch Changes
21
+
22
+ - 28a7ab7: Prevent static deployments from accidentally publishing daemon source files. Both static builders skip nested daemon roots with a warning and reject publishing a directory that is itself a daemon root. Build scripts can still deliberately publish files through a separate output directory.
23
+
3
24
  ## 14.16.0
4
25
 
5
26
  ### Minor Changes
@@ -0,0 +1,10 @@
1
+ import type { Meta } from './types';
2
+ /**
3
+ * Prevents automatic static publishing from including daemon sources.
4
+ * A separate public directory is allowed inside a shared build context.
5
+ */
6
+ export declare function createDaemonStaticFileFilter({ context, publishPath, serviceName, }: {
7
+ context: Meta['daemonContext'];
8
+ publishPath: string;
9
+ serviceName?: string;
10
+ }): Promise<(sourcePath: string) => Promise<boolean>>;
@@ -0,0 +1,80 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var daemon_static_publishing_exports = {};
20
+ __export(daemon_static_publishing_exports, {
21
+ createDaemonStaticFileFilter: () => createDaemonStaticFileFilter
22
+ });
23
+ module.exports = __toCommonJS(daemon_static_publishing_exports);
24
+ var import_promises = require("fs/promises");
25
+ var import_path = require("path");
26
+ var import_errors = require("./errors");
27
+ function contains(directory, file) {
28
+ const path = (0, import_path.relative)(directory, file);
29
+ return path === "" || !(0, import_path.isAbsolute)(path) && path !== ".." && !path.startsWith(`..${import_path.sep}`);
30
+ }
31
+ async function createDaemonStaticFileFilter({
32
+ context,
33
+ publishPath,
34
+ serviceName
35
+ }) {
36
+ if (!context || Object.keys(context.daemons).length === 0)
37
+ return async () => true;
38
+ const publish = (0, import_path.resolve)(publishPath);
39
+ const realPublish = await (0, import_promises.realpath)(publish);
40
+ const daemons = await Promise.all(
41
+ Object.entries(context.daemons).map(async ([name, daemon]) => {
42
+ const root = (0, import_path.resolve)(context.projectRoot, daemon.root);
43
+ const dockerfile = (0, import_path.resolve)(root, daemon.entrypoint);
44
+ const [realRoot, realDockerfile] = await Promise.all([
45
+ (0, import_promises.realpath)(root),
46
+ (0, import_promises.realpath)(dockerfile)
47
+ ]);
48
+ return { name, root, dockerfile, realRoot, realDockerfile };
49
+ })
50
+ );
51
+ for (const daemon of daemons) {
52
+ if (publish === daemon.root || realPublish === daemon.realRoot) {
53
+ const publisher = serviceName ? `Service "${serviceName}"` : "The app";
54
+ throw new import_errors.NowBuildError({
55
+ code: "INVALID_DAEMON_ROOT",
56
+ message: `Can't build daemon "${daemon.name}": ${publisher} publishes "${(0, import_path.relative)(context.projectRoot, publish) || "."}" as static files, but that is the daemon's root directory. Choose a separate output directory.`
57
+ });
58
+ }
59
+ }
60
+ let warned = false;
61
+ return async (sourcePath) => {
62
+ const source = (0, import_path.resolve)(sourcePath);
63
+ const realSource = await (0, import_promises.realpath)(source);
64
+ const excluded = daemons.some(
65
+ (daemon) => source === daemon.dockerfile || realSource === daemon.realDockerfile || // Directory symlinks can expose daemon sources the glob doesn't list.
66
+ contains(source, daemon.root) || contains(realSource, daemon.realRoot) || contains(daemon.root, source) && (!contains(daemon.root, publish) || !contains(publish, source)) || contains(daemon.realRoot, realSource) && (!contains(daemon.realRoot, realPublish) || !contains(realPublish, realSource))
67
+ );
68
+ if (excluded && !warned) {
69
+ console.warn(
70
+ "Warning: Skipping static files under daemon roots. To publish them intentionally, copy them into a separate build output directory."
71
+ );
72
+ warned = true;
73
+ }
74
+ return !excluded;
75
+ };
76
+ }
77
+ // Annotate the CommonJS export names for ESM import in node:
78
+ 0 && (module.exports = {
79
+ createDaemonStaticFileFilter
80
+ });
package/dist/daemons.d.ts CHANGED
@@ -21,6 +21,14 @@ export interface DaemonConfig {
21
21
  export declare const DAEMON_NAME_PATTERN = "^[a-z]+(?:(?:_|__|-+)[a-z]+)*$";
22
22
  /** Map of daemon name to daemon configuration for `vercel.json#daemons`. */
23
23
  export type Daemons = Record<string, DaemonConfig>;
24
+ /** Build Output API descriptor written to `daemons/<name>/.vc-config.json`. */
25
+ export interface DaemonOutput {
26
+ runtime: 'container';
27
+ image: string;
28
+ command?: string[];
29
+ replicas: DaemonReplicas;
30
+ resources?: DaemonResources;
31
+ }
24
32
  /**
25
33
  * Names of the daemons in `vercel.json#daemons`. Safe on unvalidated config,
26
34
  * where `daemons` may not be an object.
@@ -28,3 +36,10 @@ export type Daemons = Record<string, DaemonConfig>;
28
36
  export declare function getDaemonNames(config: {
29
37
  daemons?: unknown;
30
38
  } | null | undefined): string[];
39
+ /**
40
+ * The VCR repository a daemon's image is pushed to, under the project's
41
+ * namespace. Service names can't contain `.`, so it never matches a service's
42
+ * repository, which is named after the service. Repeated dashes collapse like
43
+ * they do for services, so `a-b` and `a--b` share one.
44
+ */
45
+ export declare function getDaemonImageRepository(name: string): string;
package/dist/daemons.js CHANGED
@@ -19,6 +19,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
19
19
  var daemons_exports = {};
20
20
  __export(daemons_exports, {
21
21
  DAEMON_NAME_PATTERN: () => DAEMON_NAME_PATTERN,
22
+ getDaemonImageRepository: () => getDaemonImageRepository,
22
23
  getDaemonNames: () => getDaemonNames
23
24
  });
24
25
  module.exports = __toCommonJS(daemons_exports);
@@ -30,8 +31,12 @@ function getDaemonNames(config) {
30
31
  }
31
32
  return Object.keys(daemons);
32
33
  }
34
+ function getDaemonImageRepository(name) {
35
+ return `daemon.${name.replace(/-+/g, "-")}`;
36
+ }
33
37
  // Annotate the CommonJS export names for ESM import in node:
34
38
  0 && (module.exports = {
35
39
  DAEMON_NAME_PATTERN,
40
+ getDaemonImageRepository,
36
41
  getDaemonNames
37
42
  });
@@ -102,7 +102,25 @@ export declare function usingCorepack(env: {
102
102
  * across multiple builds in the same Node process (e.g., in unit tests).
103
103
  */
104
104
  export declare function resetCustomInstallCommandSet(): void;
105
- export declare function runNpmInstall(destPath: string, args?: string[], spawnOpts?: SpawnOptions, meta?: Meta, projectCreatedAt?: number, output?: NpmInstallOutput): Promise<boolean>;
105
+ interface WorkspaceInstallOptions {
106
+ targets: WorkspaceInstallTarget[];
107
+ }
108
+ export interface WorkspaceInstallTarget {
109
+ installRoot?: string;
110
+ isRoot?: boolean;
111
+ name?: string;
112
+ packageJsonPath: string;
113
+ relativePath: string;
114
+ }
115
+ export declare function getWorkspaceInstallCommand({ packageManager, targets, lockfileVersion, }: {
116
+ packageManager: CliType;
117
+ targets: WorkspaceInstallTarget[];
118
+ lockfileVersion: number | undefined;
119
+ }): {
120
+ command: CliType;
121
+ args: string[];
122
+ } | null;
123
+ export declare function runNpmInstall(destPath: string, args?: string[], spawnOpts?: SpawnOptions, meta?: Meta, projectCreatedAt?: number, output?: NpmInstallOutput, workspaceInstall?: WorkspaceInstallOptions): Promise<boolean>;
106
124
  /**
107
125
  * Prepares the input environment based on the used package manager and lockfile
108
126
  * versions.
@@ -41,6 +41,7 @@ __export(run_user_scripts_exports, {
41
41
  getPathOverrideForPackageManager: () => getPathOverrideForPackageManager,
42
42
  getScriptName: () => getScriptName,
43
43
  getSpawnOptions: () => getSpawnOptions,
44
+ getWorkspaceInstallCommand: () => getWorkspaceInstallCommand,
44
45
  installDependencies: () => installDependencies,
45
46
  resetCustomInstallCommandSet: () => resetCustomInstallCommandSet,
46
47
  runBundleInstall: () => runBundleInstall,
@@ -582,7 +583,7 @@ function checkIfAlreadyInstalled(runNpmInstallSet, packageJsonPath) {
582
583
  initializedRunNpmInstallSet.add(packageJsonPath);
583
584
  return { alreadyInstalled, runNpmInstallSet: initializedRunNpmInstallSet };
584
585
  }
585
- const runNpmInstallSema = new import_async_sema.default(1);
586
+ const installSema = new import_async_sema.default(1);
586
587
  function installCompletedCovers(packageJsonPath) {
587
588
  if (process.env.VERCEL_INSTALL_COMPLETED !== "1") {
588
589
  return false;
@@ -597,18 +598,90 @@ let customInstallCommandSet;
597
598
  function resetCustomInstallCommandSet() {
598
599
  customInstallCommandSet = void 0;
599
600
  }
600
- async function runNpmInstall(destPath, args = [], spawnOpts, meta, projectCreatedAt, output) {
601
+ function getWorkspaceInstallCommand({
602
+ packageManager,
603
+ targets,
604
+ lockfileVersion
605
+ }) {
606
+ let commandArguments;
607
+ switch (packageManager) {
608
+ case "npm":
609
+ commandArguments = [
610
+ "install",
611
+ "--no-audit",
612
+ ...targets.filter((target) => !target.isRoot).map((target) => `--workspace=${target.relativePath}`),
613
+ ...targets.some((target) => target.isRoot) ? ["--include-workspace-root"] : []
614
+ ];
615
+ break;
616
+ case "pnpm":
617
+ commandArguments = [
618
+ "install",
619
+ ...targets.flatMap((target) => [
620
+ "--filter",
621
+ `{${target.relativePath}}...`
622
+ ])
623
+ ];
624
+ break;
625
+ case "yarn":
626
+ if (detectYarnVersion(lockfileVersion) !== "yarn@4.x")
627
+ return null;
628
+ if (targets.some((target) => !target.name))
629
+ return null;
630
+ commandArguments = [
631
+ "workspaces",
632
+ "focus",
633
+ ...targets.map((target) => target.name)
634
+ ];
635
+ break;
636
+ case "bun":
637
+ commandArguments = [
638
+ "install",
639
+ ...targets.flatMap((target) => [
640
+ "--filter",
641
+ target.isRoot ? "./" : `./${target.relativePath}`
642
+ ])
643
+ ];
644
+ break;
645
+ }
646
+ if (!commandArguments)
647
+ return null;
648
+ if (process.env.NPM_ONLY_PRODUCTION) {
649
+ commandArguments.push(
650
+ packageManager === "pnpm" ? "--prod" : "--production"
651
+ );
652
+ }
653
+ return { command: packageManager, args: commandArguments };
654
+ }
655
+ async function runWorkspaceInstall({
656
+ packageManager,
657
+ targets,
658
+ opts,
659
+ lockfileVersion
660
+ }) {
661
+ const installCommand = getWorkspaceInstallCommand({
662
+ packageManager,
663
+ targets,
664
+ lockfileVersion
665
+ });
666
+ if (!installCommand)
667
+ return false;
668
+ opts.prettyCommand = `${installCommand.command} ${installCommand.args.join(" ")}`;
669
+ await spawnAsync(installCommand.command, installCommand.args, opts);
670
+ return true;
671
+ }
672
+ async function runNpmInstall(destPath, args = [], spawnOpts, meta, projectCreatedAt, output, workspaceInstall) {
601
673
  if (meta?.isDev) {
602
674
  (0, import_debug.default)("Skipping dependency installation because dev mode is enabled");
603
675
  return false;
604
676
  }
605
677
  (0, import_assert.default)(import_path.default.isAbsolute(destPath));
606
678
  try {
607
- await runNpmInstallSema.acquire();
679
+ await installSema.acquire();
608
680
  const {
609
681
  cliType,
610
682
  packageJsonPath,
611
683
  packageJson,
684
+ lockfilePath,
612
685
  lockfileVersion,
613
686
  packageJsonPackageManager,
614
687
  packageJsonDevEngines,
@@ -621,7 +694,21 @@ async function runNpmInstall(destPath, args = [], spawnOpts, meta, projectCreate
621
694
  return false;
622
695
  }
623
696
  const defaultInstall = args.length === 0;
624
- if (meta && packageJsonPath && defaultInstall) {
697
+ const workspaceInstallRoot = lockfilePath ? import_path.default.dirname(lockfilePath) : void 0;
698
+ const workspaceCandidates = process.env.VERCEL_EXPERIMENTAL_WORKSPACE_SCOPED_INSTALLS === "1" && !installCompletedCovers(packageJsonPath) && defaultInstall && meta && workspaceInstall && workspaceInstallRoot ? workspaceInstall.targets.filter(
699
+ (target) => target.installRoot && import_path.default.normalize(target.installRoot) === import_path.default.normalize(workspaceInstallRoot)
700
+ ) : null;
701
+ const workspaceTargets = workspaceCandidates?.length && getWorkspaceInstallCommand({
702
+ packageManager: cliType,
703
+ targets: workspaceCandidates,
704
+ lockfileVersion
705
+ }) ? workspaceCandidates : null;
706
+ if (workspaceTargets?.length && meta) {
707
+ const installed = initializeSet(meta.runNpmInstallSet);
708
+ if (workspaceTargets.every((target) => installed.has(target.packageJsonPath))) {
709
+ return false;
710
+ }
711
+ } else if (meta && packageJsonPath && defaultInstall) {
625
712
  const { alreadyInstalled, runNpmInstallSet } = checkIfAlreadyInstalled(
626
713
  meta.runNpmInstallSet,
627
714
  packageJsonPath
@@ -645,7 +732,7 @@ async function runNpmInstall(destPath, args = [], spawnOpts, meta, projectCreate
645
732
  await spawnAsync(
646
733
  "yarn",
647
734
  ["config", "set", "enableGlobalCache", "false"],
648
- { cwd: destPath }
735
+ { cwd: destPath, env: spawnOpts?.env }
649
736
  );
650
737
  }
651
738
  }
@@ -675,6 +762,24 @@ async function runNpmInstall(destPath, args = [], spawnOpts, meta, projectCreate
675
762
  `Warning: This project may see "Error: Dynamic require of "util" is not supported". To avoid this error, remove \`"type": "module"\` from your package.json file, or use \`yarnPath\` instead of Corepack. Learn more: https://vercel.com/docs/errors/error-list#yarn-dynamic-require-of-util-is-not-supported`
676
763
  );
677
764
  }
765
+ if (workspaceTargets?.length && workspaceInstallRoot && meta) {
766
+ const scopedOpts = { ...opts, cwd: workspaceInstallRoot };
767
+ const installed = await runWorkspaceInstall({
768
+ packageManager: cliType,
769
+ targets: workspaceTargets,
770
+ opts: scopedOpts,
771
+ lockfileVersion
772
+ });
773
+ if (installed) {
774
+ const installedPackages = initializeSet(meta.runNpmInstallSet);
775
+ for (const target of workspaceTargets) {
776
+ installedPackages.add(target.packageJsonPath);
777
+ }
778
+ meta.runNpmInstallSet = installedPackages;
779
+ (0, import_debug.default)(`Install complete [${Date.now() - installTime}ms]`);
780
+ return true;
781
+ }
782
+ }
678
783
  await runInstallCommand({
679
784
  packageManager: cliType,
680
785
  args,
@@ -684,7 +789,7 @@ async function runNpmInstall(destPath, args = [], spawnOpts, meta, projectCreate
684
789
  (0, import_debug.default)(`Install complete [${Date.now() - installTime}ms]`);
685
790
  return true;
686
791
  } finally {
687
- runNpmInstallSema.release();
792
+ installSema.release();
688
793
  }
689
794
  }
690
795
  function resolveEffectiveBunVersion(nodeVersion, lockfileVersion) {
@@ -1361,6 +1466,7 @@ const installDependencies = (0, import_util.deprecate)(
1361
1466
  getPathOverrideForPackageManager,
1362
1467
  getScriptName,
1363
1468
  getSpawnOptions,
1469
+ getWorkspaceInstallCommand,
1364
1470
  installDependencies,
1365
1471
  resetCustomInstallCommandSet,
1366
1472
  runBundleInstall,
package/dist/index.d.ts CHANGED
@@ -8,7 +8,7 @@ import download, { downloadFile, type DownloadedFiles, isSymbolicLink, isDirecto
8
8
  import getWriteableDirectory from './fs/get-writable-directory';
9
9
  import glob, { type GlobOptions } from './fs/glob';
10
10
  import rename from './fs/rename';
11
- import { spawnAsync, execCommand, spawnCommand, getScriptName, installDependencies, runPackageJsonScript, runNpmInstall, runBundleInstall, runPipInstall, runShellScript, runCustomInstallCommand, resetCustomInstallCommandSet, getEnvForPackageManager, getNodeVersion, getPathForPackageManager, detectPackageManager, getSpawnOptions, getNodeBinPath, getNodeBinPaths, scanParentDirs, type PipInstallResult, type NpmInstallOutput, type CliType } from './fs/run-user-scripts';
11
+ import { spawnAsync, execCommand, spawnCommand, getScriptName, installDependencies, runPackageJsonScript, runNpmInstall, runBundleInstall, runPipInstall, runShellScript, runCustomInstallCommand, resetCustomInstallCommandSet, getEnvForPackageManager, getNodeVersion, getPathForPackageManager, detectPackageManager, getSpawnOptions, getNodeBinPath, getNodeBinPaths, scanParentDirs, type PipInstallResult, type NpmInstallOutput, type CliType, type WorkspaceInstallTarget } from './fs/run-user-scripts';
12
12
  import { getLatestNodeVersion, getDiscontinuedNodeVersions, getSupportedNodeVersion, isBunVersion, getSupportedBunVersion } from './fs/node-version';
13
13
  import { findPackageJson, walkParentDirs, traverseUpDirectories } from './fs/find-package-json';
14
14
  import streamToBuffer, { streamToBufferChunks } from './fs/stream-to-buffer';
@@ -23,8 +23,9 @@ import { hardLinkDir } from './hard-link-dir';
23
23
  import { getNodeExecPath } from './get-node-exec-path';
24
24
  import { validateNpmrc } from './validate-npmrc';
25
25
  export type { NodejsLambdaOptions, PrerenderInitialMetadata, PrerenderOnMiss };
26
+ export { createDaemonStaticFileFilter } from './daemon-static-publishing';
26
27
  export type { LambdaAffinity } from './lambda';
27
- export { FileBlob, FileFsRef, FileRef, Lambda, NodejsLambda, createLambda, Prerender, download, downloadFile, type DownloadedFiles, getWriteableDirectory, glob, type GlobOptions, rename, spawnAsync, getScriptName, installDependencies, runPackageJsonScript, execCommand, spawnCommand, walkParentDirs, getNodeBinPath, getNodeBinPaths, getNodeExecPath, getSupportedNodeVersion, isBunVersion, getSupportedBunVersion, getOrCreateBunBinary, detectPackageManager, runNpmInstall, type NpmInstallOutput, runBundleInstall, runPipInstall, type PipInstallResult, runShellScript, runCustomInstallCommand, resetCustomInstallCommandSet, getEnvForPackageManager, getNodeVersion, getPathForPackageManager, getLatestNodeVersion, getDiscontinuedNodeVersions, getSpawnOptions, getPlatformEnv, getPrefixedEnvVars, getServiceUrlEnvVars, getExperimentalServiceUrlEnvVars, streamToBuffer, streamToBufferChunks, debug, isSymbolicLink, isDirectory, isExternalSymlink, isExternalSymlinkTarget, getSymlinkTarget, findMatchingFunction, getLambdaOptionsFromFunction, sanitizeConsumerName, scanParentDirs, findPackageJson, getIgnoreFilter, cloneEnv, hardLinkDir, traverseUpDirectories, validateNpmrc, type CliType, };
28
+ export { FileBlob, FileFsRef, FileRef, Lambda, NodejsLambda, createLambda, Prerender, download, downloadFile, type DownloadedFiles, getWriteableDirectory, glob, type GlobOptions, rename, spawnAsync, getScriptName, installDependencies, runPackageJsonScript, execCommand, spawnCommand, walkParentDirs, getNodeBinPath, getNodeBinPaths, getNodeExecPath, getSupportedNodeVersion, isBunVersion, getSupportedBunVersion, getOrCreateBunBinary, detectPackageManager, runNpmInstall, type NpmInstallOutput, type WorkspaceInstallTarget, runBundleInstall, runPipInstall, type PipInstallResult, runShellScript, runCustomInstallCommand, resetCustomInstallCommandSet, getEnvForPackageManager, getNodeVersion, getPathForPackageManager, getLatestNodeVersion, getDiscontinuedNodeVersions, getSpawnOptions, getPlatformEnv, getPrefixedEnvVars, getServiceUrlEnvVars, getExperimentalServiceUrlEnvVars, streamToBuffer, streamToBufferChunks, debug, isSymbolicLink, isDirectory, isExternalSymlink, isExternalSymlinkTarget, getSymlinkTarget, findMatchingFunction, getLambdaOptionsFromFunction, sanitizeConsumerName, scanParentDirs, findPackageJson, getIgnoreFilter, cloneEnv, hardLinkDir, traverseUpDirectories, validateNpmrc, type CliType, };
28
29
  export { EdgeFunction } from './edge-function';
29
30
  export { ContainerImage } from './container-image';
30
31
  export type { ContainerImageConfig } from './container-image';
@@ -52,7 +53,7 @@ export { isNodeEntrypoint } from './node-entrypoint';
52
53
  export * from './service-path-utils';
53
54
  export * from './schedule-path-utils';
54
55
  export * from './schedules';
55
- export { DAEMON_NAME_PATTERN, getDaemonNames, type DaemonConfig, type DaemonReplicas, type DaemonResources, type Daemons, } from './daemons';
56
+ export { DAEMON_NAME_PATTERN, getDaemonImageRepository, getDaemonNames, type DaemonConfig, type DaemonOutput, type DaemonReplicas, type DaemonResources, type Daemons, } from './daemons';
56
57
  export { getEncryptedEnv, type EncryptedEnvFile, } from './process-serverless/get-encrypted-env-file';
57
58
  export { getLambdaEnvironment } from './process-serverless/get-lambda-environment';
58
59
  export { getLambdaPreloadScripts, type BytecodeCachingOptions, } from './process-serverless/get-lambda-preload-scripts';
@@ -81,3 +82,4 @@ export { validatePrerender } from './collect-build-result/validate-prerender';
81
82
  export { getContentType } from './collect-build-result/get-content-type';
82
83
  export { fileToBuildOutputFile, type BuildOutputFile, } from './collect-build-result/file-to-build-output-file';
83
84
  export { prerenderToBuildOutputFile, type ExtendedPayload, } from './collect-build-result/prerender-to-build-output-file';
85
+ export { EMPTY_DISCOVERY, NAVIGATION_ACCEPT_RE, promoteStaticFiles, staticBundleExclusions, staticDirectoryRedirects, staticFallbackRoutes, staticShadowRoutes, type ShadowRoute, type StaticBundleExclusions, type StaticFallback, type StaticDiscovery, type StaticMount, type StaticPromotionOptions, type StaticPromotionResult, } from './static-files';