question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

fastify.ready() with fastify-cli

See original GitHub issue

Hello everyone. I’m using fastify-cli to run my project, and don’t know where to add the configuration:

fastify.ready(err => {
  if (err) throw err
  fastify.swagger()
})

Thanks!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:15 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
mcollinacommented, Jun 11, 2018

Oh, you’ll need the exposeRoute: true option.

0reactions
radvansky-tomascommented, Jan 21, 2019

Thank you, works. Please try to add this to main example, as this is what you will get if you follow guides 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting-Started - Fastify
Plugin loading starts when you call fastify.listen() , fastify.inject() or fastify.ready(). The MongoDB plugin uses the decorate API to add custom objects ...
Read more >
Getting Started - Fastify
Plugin loading starts when you call fastify.listen() , fastify.inject() or fastify.ready(). We have used the decorate api API.
Read more >
fastify-cli - npm
Command line tools for Fastify. Generate, write, and run an application with one single command! Install. npm install fastify-cli --global ...
Read more >
A Simple Ejectable CLI Pattern
The server itself is created and executed by fastify-cli, ... either use an async function, or you must explicitly call next() at the...
Read more >
Getting-Started | Fastify 中文网
这篇文档将向你介绍Fastify 框架及其特性,也包含了一些示例和指向其他文档的链接。 ... 当调用函数 fastify.listen() 、 fastify.inject() 或 fastify.ready() 时, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found