@vercel/backends 0.0.37 → 0.0.38

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.
Files changed (2) hide show
  1. package/dist/index.mjs +6 -1
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { builtinModules, createRequire } from "node:module";
2
2
  import { delimiter, dirname, extname, join } from "path";
3
- import { FileBlob, FileFsRef, NodejsLambda, Span, debug, defaultCachePathGlob, download, execCommand, getEnvForPackageManager, getNodeBinPaths, getNodeVersion, glob, isBackendFramework, isBunVersion, isExperimentalBackendsWithoutIntrospectionEnabled, runNpmInstall, runPackageJsonScript, scanParentDirs } from "@vercel/build-utils";
3
+ import { FileBlob, FileFsRef, NodejsLambda, Span, debug, defaultCachePathGlob, download, execCommand, getEnvForPackageManager, getLambdaOptionsFromFunction, getNodeBinPaths, getNodeVersion, glob, isBackendFramework, isBunVersion, isExperimentalBackendsWithoutIntrospectionEnabled, runNpmInstall, runPackageJsonScript, scanParentDirs } from "@vercel/build-utils";
4
4
  import { createWriteStream, existsSync, mkdirSync, mkdtempSync, readFileSync, rmSync, unlinkSync, writeFileSync } from "node:fs";
5
5
  import { lstat, readFile, rm, stat } from "node:fs/promises";
6
6
  import { dirname as dirname$1, extname as extname$1, isAbsolute, join as join$1, relative } from "node:path";
@@ -1471,6 +1471,10 @@ const build = async (args) => {
1471
1471
  for (const matched of includeResults) for (const [relPath, entry] of Object.entries(matched)) files[relPath] = entry;
1472
1472
  const introspectionResult = await introspectionPromise;
1473
1473
  await typescriptPromise;
1474
+ const functionConfigOverrides = await getLambdaOptionsFromFunction({
1475
+ sourceFile: entrypoint,
1476
+ config: args.config
1477
+ });
1474
1478
  const lambda = new NodejsLambda({
1475
1479
  runtime: nodeVersion.runtime,
1476
1480
  handler,
@@ -1479,6 +1483,7 @@ const build = async (args) => {
1479
1483
  shouldAddHelpers: false,
1480
1484
  shouldAddSourcemapSupport: true,
1481
1485
  awsLambdaHandler: "",
1486
+ ...functionConfigOverrides,
1482
1487
  shouldDisableAutomaticFetchInstrumentation: process.env.VERCEL_TRACING_DISABLE_AUTOMATIC_FETCH_INSTRUMENTATION === "1"
1483
1488
  });
1484
1489
  const routes = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/backends",
3
- "version": "0.0.37",
3
+ "version": "0.0.38",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./dist/index.mjs",
6
6
  "homepage": "https://vercel.com/docs",
@@ -34,7 +34,7 @@
34
34
  "srvx": "0.8.9",
35
35
  "tsx": "4.21.0",
36
36
  "zod": "3.22.4",
37
- "@vercel/build-utils": "13.5.0"
37
+ "@vercel/build-utils": "13.6.0"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "typescript": "^4.0.0 || ^5.0.0"