Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix passing Fastify options #691

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

frodoe7
Copy link

@frodoe7 frodoe7 commented Jan 2, 2024

Checklist

Signed-off-by: Ahmed Mohsen <[email protected]>
@frodoe7 frodoe7 mentioned this pull request Jan 2, 2024
2 tasks
@@ -135,7 +135,7 @@ async function runFastify (args, additionalOptions, serverOptions) {
options = deepmerge(options, serverOptions)
}

if (opts.options && file.options) {
if (opts.options || file.options) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is absolutely a wrong fix.
The opts.options expected to be true in order to allow file options.
It is the documented behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants