[Inquiry]: Extending `app` with custom fastify plugin
See original GitHub issueIs 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:
- Created a year ago
- Comments:6 (6 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Closing for now, we are aware of that specific crash and we are working on it. It might take a bit of time.
Minor update: I bumped up my Node version to 18.10.0 and it works smoothly. 🙈