await site.update({ label: "Portfolio (2026)" });site.update(label="Portfolio (2026)")Por qu'è fixè la lima
Cambiando di tre cose spezzaria contemporaneamente tre
Links ya condivisi, il dominio del cliente ad esso attachò, e il certificate emitat per quel hostname.Ninguna delle tre fa coltre brûle — s'absolu stunt.
Per un altro address, un altro host
const next = await api.hosts.create({ kind: "site", slug: "portfolio-2026", label: "Portfolio" });
await next.deploy({ files: "./out" });
// Then move the domain, and remove the old host when nothing points at it.nxt = api.hosts.create(runtime="static", slug="portfolio-2026", label="Portfolio")
nxt.deploy(files="./out")
# Then move the domain, and remove the old host when nothing points at it.Para qu' serve l'etiqueta
Mostrando in una lista. Nada depende dela, quindi cambiarla è sicuro — e è proprio per questo che è un campo che può cambiare.
Aggiorna l'oggetto
host.label è sostituito con quello che è tornato.