Skip to content

NetlifyDeployFunctionSpec

Defined in: deploys/deploys.ts:48

One function to deploy. zip is a pre-built archive — the function’s own code plus, if it imports anything beyond Node builtins, a real node_modules (Netlify’s raw deploy API runs no build/install step, unlike a Git-linked deploy — src/zip.ts’s buildZip() builds this from { path: content } entries, text or binary).

Netlify’s classic function runtime (runtime: "js") expects a CommonJS-style exports.handler or ESM export const handler entry point — confirmed live: a V2-style export default (req) => Response handler deploys without error but fails at invoke time with Runtime.HandlerNotFound. The entry file’s basename (minus extension) inside the zip should match name.

name: string

Defined in: deploys/deploys.ts:50

Becomes invokable at /.netlify/functions/<name>.


optional runtime?: "js" | "go"

Defined in: deploys/deploys.ts:52

Lambda runtime: "js" (Node.js, zipped) or "go" (zipped binary).


zip: Uint8Array

Defined in: deploys/deploys.ts:54

The function’s zip archive.