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.

[Inquiry]: Extending `app` with custom fastify plugin

See original GitHub issue

Is it possible to extend app (FastifyInstance) when creating a custom plugin? I’d like to register a custom Fastify plugin in my plugin (feels meta). And could you please share a minimal example of how to do this? (docs would be fine too)

If this is possible, I would be happy to contribute to the Platformatic docs. 😃

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
mcollinacommented, Oct 11, 2022

Closing for now, we are aware of that specific crash and we are working on it. It might take a bit of time.

1reaction
ruhenicommented, Oct 11, 2022

Minor update: I bumped up my Node version to 18.10.0 and it works smoothly. 🙈

Read more comments on GitHub >

github_iconTop Results From Across the Web

Plugins - Fastify
Fastify allows the user to extend its functionalities with plugins. A plugin can be a set of routes, a server decorator, or whatever....
Read more >
Decorators - Fastify
Decorators. The decorators API allows customization of the core Fastify objects, such as the server instance itself and any request and reply objects...
Read more >
Getting-Started - Fastify
The MongoDB plugin uses the decorate API to add custom objects to the Fastify instance, making them available for use everywhere. Use of...
Read more >
Plugins-Guide - Fastify
The hitchhiker's guide to plugins. Register; Decorators; Hooks; How to handle encapsulation and distribution; ESM support; Handle errors; Custom errors ...
Read more >
TypeScript - Fastify
Fastify allows the user to extend its functionalities with plugins. A plugin can be a set of routes, a server decorator or whatever....
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