البلد

update()

host.update({ label }) → Promise<Host>

وَلَا يَتَغَيَّرُ ٱلْمَسِيحِيُّونَ .

PATCHlabel onlythe slug is the URL
Using Python?

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

await site.update({ label: "Portfolio (2026)" });
site.update(label="Portfolio (2026)")

لماذا تم تثبيت الكس :

تغييره سيكسر ثلاثة أشياء مرة واحدة

فالوصلات التي سبق تقاسمها ، وميدان العميل الملحق بها ، والشهادة الصادرة لذلك الاسم المضيف .

لعنوان آخر، ولضيف آخر

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.

ما هو الغرض من هذا الوصف

لا شيء يعتمد عليه ، لذلك تغييره آمن ، وهذا هو بالضبط السبب في انه المجال الوحيد الذي يمكن ان يتغير .

إنه يُحدث الجسم

host.label استبدل بما عاد