▸ createServer(config
): Promise
<{ instance
: FastifyInstance
<Server
, IncomingMessage
, ServerResponse
, FastifyLoggerInstance
> & PromiseLike
<FastifyInstance
<Server
, IncomingMessage
, ServerResponse
, FastifyLoggerInstance
>> ; start
: () => Promise
<void
> ; stop
: () => Promise
<void
> }>
Create instance of development server, powered by Fastify.
Name | Type | Description |
---|---|---|
config |
Config |
Server configuration. |
Promise
<{ instance
: FastifyInstance
<Server
, IncomingMessage
, ServerResponse
, FastifyLoggerInstance
> & PromiseLike
<FastifyInstance
<Server
, IncomingMessage
, ServerResponse
, FastifyLoggerInstance
>> ; start
: () => Promise
<void
> ; stop
: () => Promise
<void
> }>
start
and stop
functions as well as an underlying Fastify instance
.