Open
Description
Prerequisites
- I have written a descriptive issue title
- I have searched existing issues to ensure the feature has not already been requested
🚀 Feature Proposal
Hey, would it be possible to surpress or modify (preferably) the warning that gets logged, when one of the root directories from the config does not exist, such as:
"root" path "..." must exist
I want to set my own message when this occurs. Would it make sense? If so, I can create a PR for this feature.
Motivation
No response
Example
I am imagining something in the lines of:
fastify.register(fastifyStatic, {
root: './static',
getPathNotFoundWarning: (path) => `"root" path "${path}" must exist`,
});
Metadata
Metadata
Assignees
Labels
No labels