BlueForge Docs

client.functions.list

List all deployed edge functions.

Signature

class Client {
  functions: {
    list(): Promise<{ name: string; trigger: string; enabled: boolean }[]>
  }
}

Examples

List all functions:

const fns = await bf.functions.list()
for (const fn of fns) {
  console.log(`${fn.name} (${fn.trigger}) — ${fn.enabled ? 'enabled' : 'disabled'}`)
}

Throws

ErrorCondition
ApiError
API request failed
NetworkError
Network issue

Pitfalls

  • Stale cache — may take up to 30s to reflect a recent deploy or removal

See also

{auto-injected}

Tested against

{auto-injected}