Closed hgrubst closed 5 years ago
I'll take a PR if you want to try it.
Sure, I've raised https://github.com/hapijs/glue/pull/129
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 am currently migrating from hapi 17 to hapi 18 and cannot configure my server cache successfully with glue. Although the doc mentions specific support to call 'require' on the 'provider' option, this is forcing you to have provider as a string instead of an object, hence prevent you from passing additional options. Here is how my config looks like :
What I would like is that glue takes care of calling require on the 'constructor' property if the passed in provider is an object which is currently not the case. Here is the relevant code in glue :
As you can see, it will only call require when setting the provider to a string, basically preventing you from passing further options. Am I missing something else here ?