nodejs-tutorials-hapi
nodejs-tutorials-hapi copied to clipboard
Found some breaking changes since Hapi v19
Coming from this Future Studio tutorial for Hapi ( https://futurestud.io/tutorials/hapi-extend-your-server-functionality-with-plugins), the snippets failed to run so I did some digging and wanna contribute a bit:
- Dependency names have prefix '@hapi/'
- Registering plugins requires key 'plugin' instead of 'register'
- Good options seem self-contradicting? i.e. ops is set at interval 1000 but reporters exclude the ops arg