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
idstringWhat rollback() takes.
createdAtstringWhen it was deployed.
files · bytesintegerHow much went.
skippedarrayWhat was dropped, and why.
skipped is worth reading afterwards
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.