Redeploy a web frontend
lavela.redeployRedeploy a web-hosting project from its latest repo state. Call it with just projectId: it rebuilds the same repo, folder and branch as the last successful deploy, with the env stored on the project. Poll lavela.get_status (CONFLICT = one is already running). NOT for a server on compute — lavela.compute_build_status {projectId, service} gives its last build; lavela.compute_rebuild with that id redeploys it (same branch — pushed code included — folder, size, port, env, mounts). lavela.provision_compute_from_repo is for a first deploy, or with settings the user has confirmed — whatever it is given replaces the running server. Details: https://console.lavela.dev/docs/mcp#redeploy-and-rollback
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| env | No | Only env vars to ADD or CHANGE; omitted = the env stored on the project. | |
| branch | No | Only to CHANGE the branch ("" = the default); omitted = the last deploy's. Required (not a /tree/ URL suffix) for a name with "/". | |
| subdir | No | Only to CHANGE the folder ("" = repo root); omitted = the last deploy's folder. | |
| githubUrl | No | https://github.com/<owner>/<repo>[/tree/<branch>] | |
| projectId | Yes |