readHttpServerOptions()
Home > @backstage/backend-app-api
> readHttpServerOptions
Reads HttpServerOptions from a Config object.
Signature:
function readHttpServerOptions(config?: Config): HttpServerOptions;
Parameters
Parameter | Type | Description |
---|---|---|
config | Config | (Optional) |
Returns:
Remarks
The provided configuration object should contain the listen
and additional keys directly.
Example
const opts = readHttpServerOptions(config.getConfig('backend'));