Skip to content

Make decorate* methods throw after server is started. #2116

@mcollina

Description

@mcollina

🚀 Feature Proposal

In #2115, the reporter is trying to decorate the global request object within a route. This is not supported by Fastify, and we should throw if server.decorate(), server.decorateRequest() or server.decorateReply() are called after .ready().

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions