I’m creating a website through an API and need to specify the runtime for the site to function correctly. I’m using a payload like this:
Here’s a snippet of the payload I’m using:
{
"name": "test",
"repo": {
"id": "123",
"provider": "github",
"deploy_key_id": "345",
"repo_path": "username/reponame",
"repo_branch": "main",
"dir": ".next",
"cmd": "npm run build",
"public_repo": false,
"repo_url": "https://github.com/username/reponam",
"installation_id": "567",
"base": "/"
}
}
However, I couldn’t find a specific parameter to set the runtime. Without specifying the runtime, the website won’t work properly. I attempted to include runtime: "nextjs"
in the repo
section, but it didn’t work.
Is there a particular parameter or configuration I should use to specify the runtime for the website? If so, could you guide me on where and how to include it in the API payload?