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
Server options load support? Migrating from hapi 16 -> 17 #123
Comments
Server options go into |
I am following along with the example usage here https://github.com/hapijs/glue/blob/master/API.md#usage that code abstracts away access to the call to this code so that I never write the line I dont understand how to access the Hapi.server options object to pass additional options if glue compose returns an instance of a server already prepared. |
To be specific about my code, i am passing manifest with the below options, and Hapi complains that they are not valid
The error I receive is If it matters sine hapi is complaining I am on version hapi@^17.8.1 |
Does it work with calling |
that did it! thank you for the correction. I merely had the options object configured incorrectly. The heap should have been inside the load object not outside it. |
This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions. |
I'm migrating from hapi 16 -> 17.
I see the new syntax for passing load options in hapi is to pass
server.options.load
(example max event loop delay as documented herehttps://github.com/hapijs/hapi/blob/master/API.md#-serveroptionsload
). The docs above label it as the Hapi api for v18.x but since that’s the development version I think the settings are identical for v17 as per the release notes here hapijs/hapi#3658But when i try to pass those in my manifest options the Joi schema dings me for not being one of the options below. would there be plans to include additional happy config options in glue eventually? Or how would you recommend I pass options to the hapi Server outside of those supported by glue?
We're on node 8 and Express if that matters.
Thanks,
Eli
The text was updated successfully, but these errors were encountered: