hapi-good

Get Hapi to Register @Hapi/Good Plugin Only Once

六眼飞鱼酱① 提交于 2019-12-13 03:19:38
问题 Hapi (v17 & 18) states that I can specify an option on server.register to make the plugin on get initialized once, regardless of however many times server.register is called with that plugin - link to docs. However, I have been unable to get this to work. I have tried putting options an element on the object that gets passed into server.register . When I try to run the server, I get the error [1] "once" conflict with forbidden peer "options" . This leads me to believe that it must go in the