Skip to content

Latest commit

 

History

History
41 lines (36 loc) · 3.54 KB

createdeploymentrequest.md

File metadata and controls

41 lines (36 loc) · 3.54 KB

CreateDeploymentRequest

Example Usage

import { CreateDeploymentRequest } from "@vercel/sdk/models/operations/createdeployment.js";

let value: CreateDeploymentRequest = {
  requestBody: {
    files: [
      {
        file: "folder/file.js",
      },
    ],
    gitMetadata: {
      remoteUrl: "https://github.com/vercel/next.js",
      commitAuthorName: "kyliau",
      commitMessage:
        "add method to measure Interaction to Next Paint (INP) (#36490)",
      commitRef: "main",
      commitSha: "dc36199b2234c6586ebe05ec94078a895c707e29",
      dirty: true,
    },
    meta: {
      "foo": "bar",
    },
    name: "my-instant-deployment",
    project: "my-deployment-project",
  },
};

Fields

Field Type Required Description
skipAutoDetectionConfirmation operations.SkipAutoDetectionConfirmation Allows to skip framework detection so the API would not fail to ask for confirmation
forceNew operations.ForceNew Forces a new deployment even if there is a previous similar deployment
teamId string The Team identifier to perform the request on behalf of.
slug string The Team slug to perform the request on behalf of.
requestBody operations.CreateDeploymentRequestBody N/A