diff --git a/src/lib/ghost.ts b/src/lib/ghost.ts index f70cd6f..f7ef609 100644 --- a/src/lib/ghost.ts +++ b/src/lib/ghost.ts @@ -70,7 +70,10 @@ function makeAdHocClient(creds: LiveCreds): any { export async function fetchSettings(creds: LiveCreds): Promise { const client = makeAdHocClient(creds); - const raw = await client.settings.browse(); + // @tryghost/admin-api exposes site metadata via client.site.read() — not + // client.settings.browse() (which doesn't exist). The /site/ endpoint + // returns title, description, icon, accent_color, etc. + const raw = await client.site.read(); const iconUrl = (() => { if (!raw?.icon) return null; const url = String(raw.icon);