mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
47d57f4bcd
The change in #1155 to remove server-side gzipping changed static rendering to no longer return a promise, which broke the Hapi example that was waiting for a resolved promise before closing the request. This PR fixes up all render or serve methods of server.js to consistently either await and/or return. Additionally, it collapses serveStatic and _serveStatic, as _serveStatic no longer needs to be factored out. |
||
---|---|---|
.. | ||
build | ||
config.js | ||
document.js | ||
hot-reloader.js | ||
index.js | ||
next.js | ||
read-page.js | ||
render.js | ||
require.js | ||
resolve.js | ||
router.js |