Host

deploys()

host.deploys() → Promise<Deploy[]>

The deploy history, newest first. Each one can be put back online.

GETfreenewest first
Using Python?

Switch any code block to Python: the choice applies to every page. Python SDK guide and resource reference.

for (const deploy of await host.deploys()) {
  console.log(deploy.id, deploy.createdAt, deploy.files, deploy.bytes, deploy.skipped?.length ?? 0);
}
for deploy in host.deploys():
    print(deploy["id"], deploy["createdAt"], deploy["files"], deploy["bytes"], len(deploy.get("skipped") or []))

What an entry carries

idstring

What rollback() takes.

createdAtstring

When it was deployed.

files · bytesinteger

How much went.

skippedarray

What was dropped, and why.

skipped is worth reading afterwards

A missing file is usually in here

A page that does not appear on a deployed site is most often a file whose name matched something that is never published. The history says so, after the fact, without having to deploy again to find out.

The newest is not always what is online

After a rollback, host.current is an earlier one. Compare the two rather than assuming the top of the list is serving.

History is what makes a rollback possible

A deploy that is no longer in it cannot be put back. For a version that matters, keep the files on your side as well — the history is a convenience, not an archive.