Skip to content

Commit

Permalink
Merge pull request #34 from firstandthird/hapi-18
Browse files Browse the repository at this point in the history
Support hapi 18's new cache format
  • Loading branch information
dawnerd authored Apr 2, 2019
2 parents 37e991f + 53f2bb3 commit ef84baa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = (Hapi, config, options, requireCwd) => {
// remove cache if not being used to avoid hapi errors:
delete serverConfig.cache;
} else {
serverConfig.cache.engine = requireCwd(serverConfig.cache.engine);
serverConfig.cache.provider.constructor = requireCwd(serverConfig.cache.provider.constructor);
}
}
if (process.env.PORT) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"eslint-config-firstandthird": "^4.3.0",
"eslint-plugin-import": "^2.14.0",
"handlebars": "^4.0.12",
"hapi": "^17.5.4",
"hapi": "^18.1.0",
"tap": "^12.0.1",
"vision": "^5.4.0"
}
Expand Down

0 comments on commit ef84baa

Please sign in to comment.