Creates and starts a Fastify HTTP server with the given configuration.
Steps performed:
FastifyInstance
opts
locals
verifyToken
decorators
plugins
routes
notFound
fastify.listen()
done
The FastifyInstance (e.g. for use with fastify.close()).
fastify.close()
Creates and starts a Fastify HTTP server with the given configuration.
Steps performed:
FastifyInstancemerging defaultFastifyOptions withopts.locals,verifyToken, and any extradecorators.pluginsandroutes.notFoundhandler (throws Boom 404) and defaultErrorHandler.fastify.listen()and invokes the optionaldonecallback.