Home > @uniformdev/context-edge-vercel > CreateUniformEdgeMiddlewareOptions

CreateUniformEdgeMiddlewareOptions interface

Configuration options for creating the Uniform edge middleware.

Signature:

Properties

PropertyModifiersTypeDescription
buildOriginRequestHeaders?(request: EdgeMiddlewareRequest) => Record<string, string>(Optional) Optional function to build custom headers for the origin request. If not provided, only the Cookie header is sent.
onError?TransformEdgeStreamOptions['onError'](Optional) Called when an error occurs during stream processing. Receives the error and, when available, the decoded HTML chunk that triggered it.