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
tsfunction getConnInfo(c: Context<Env>)
Parameters
| Name | Type |
|---|---|
c | Context<Env> |
Diagram
mermaidgraph LR A[Application] --> B[getConnInfo] B --> C[Netlify adapter] C --> D[Connection information] D --> A
Usage
tsimport { 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?