onRequest
Adds Open Graph and Twitter image metadata to a Starlight documentation response.
Import:
import { onRequest } from '@mnaoumov/typescript-dev-toolkit/docs-site/route-data';Signature:
function onRequest(context: APIContext<Record<string, any>, Record<string, string | undefined>>): voidParameters:
| Parameter | Type | Description |
|---|---|---|
context |
APIContext<Record<string, any>, Record<string, string | undefined>> | Astro’s request context. |
Returns: void