diff --git a/examples/custom-server-hapi/next-wrapper.js b/examples/custom-server-hapi/next-wrapper.js index ecdd9bb132122..682d03fd6e481 100644 --- a/examples/custom-server-hapi/next-wrapper.js +++ b/examples/custom-server-hapi/next-wrapper.js @@ -2,7 +2,7 @@ const pathWrapper = (app, pathName, opts) => ({ raw, query }, hapiReply) => app.renderToHTML(raw.req, raw.res, pathName, query, opts) .then(hapiReply) -const defaultHandlerWrapper = app => ({ raw }, hapiReply) => -app.run(raw.req, raw.res) +const defaultHandlerWrapper = app => ({ raw, url }, hapiReply) => +app.run(raw.req, raw.res, url) module.exports = { pathWrapper, defaultHandlerWrapper }