Skip to content

getConnInfo

reference
1 min readUpdated

Kind: Function

Source: src/adapter/netlify/conninfo.ts

Part of: Adapter

Get connection information from Netlify

getConnInfo retrieves connection information from the Netlify adapter. It acts as the Netlify-specific source for connection data used by the surrounding adapter flow.

Signature

ts
function getConnInfo(c: Context<Env>)

Parameters

NameType
cContext<Env>

Diagram

mermaid
graph LR
  A[Application] --> B[getConnInfo]
  B --> C[Netlify adapter]
  C --> D[Connection information]
  D --> A

Usage

ts
import { getConnInfo } from './adapter/netlify/conninfo';

const connectionInfo = await getConnInfo();

console.log(connectionInfo);

AI Coding Instructions

  • Keep Netlify-specific connection lookup logic inside the Netlify adapter.
  • Treat the return value as adapter data; avoid duplicating Netlify environment handling in callers.
  • Handle missing or invalid connection data at the integration boundary.
  • Update callers when the connection information shape changes.

Was this page helpful?

Download as PDF
getConnInfo — Hono (narrator proof)