跳至正文內容
TursoDB.cn 獨立社群 · MVCC 並行寫入與每 Agent 獨立庫實戰 閱讀解析 →
Turso Cloud API 參考 介面資源 節點區域

最近的區域

傳回距離使用者位置最近的區域。

回應

server string

回應伺服器的位置代碼。

client string

用戶端請求的位置代碼。

curl https://region.turso.io
import { createClient } from "@tursodatabase/api";

const turso = createClient({
  org: "...",
  token: "",
});

const { server, client } = await turso.locations.closest();
{
  "server": "lhr",
  "client": "lhr"
}
同步自官方 Turso 文件倉庫 ( tursodatabase/turso-docs · MIT 開源授權) 檢視官方原文 ↗
搜尋
按 Esc 關閉 · 由 Pagefind 靜態索引驅動