@vercel/container
Advanced tools
+14
-1
@@ -39,2 +39,3 @@ "use strict"; | ||
| module.exports = __toCommonJS(src_exports); | ||
| var import_build_utils3 = require("@vercel/build-utils"); | ||
| var import_node_fs6 = require("fs"); | ||
@@ -1486,2 +1487,9 @@ var import_node_path6 = __toESM(require("path")); | ||
| var version = 2; | ||
| function resolveFunctionSourceFile(options) { | ||
| const entrypoint = readString(options.entrypoint) ?? ""; | ||
| if (entrypoint === "<detect>") { | ||
| return findDockerfile(options.workPath) ?? entrypoint; | ||
| } | ||
| return entrypoint; | ||
| } | ||
| function normalizeCommand2(command) { | ||
@@ -1731,2 +1739,6 @@ if (typeof command === "string") { | ||
| ); | ||
| const lambdaOptions = await (0, import_build_utils3.getLambdaOptionsFromFunction)({ | ||
| sourceFile: resolveFunctionSourceFile(options), | ||
| config: options.config | ||
| }); | ||
| const command = normalizeCommand2(options.config.command); | ||
@@ -1749,3 +1761,4 @@ const routes = [ | ||
| environment: {}, | ||
| ...command ? { command } : {} | ||
| ...command ? { command } : {}, | ||
| ...lambdaOptions | ||
| } | ||
@@ -1752,0 +1765,0 @@ } |
+2
-2
| { | ||
| "name": "@vercel/container", | ||
| "version": "0.0.4", | ||
| "version": "0.0.5", | ||
| "license": "Apache-2.0", | ||
@@ -18,3 +18,3 @@ "main": "./dist/index.js", | ||
| "vitest": "2.0.3", | ||
| "@vercel/build-utils": "13.32.2" | ||
| "@vercel/build-utils": "13.32.3" | ||
| }, | ||
@@ -21,0 +21,0 @@ "publishConfig": { |
70551
0.69%1755
0.75%