rsnext/test/integration/prerender
Gerald Monaco 2795b79959
Add initial ResponsePayload support (#26938)
Refactors the internals of `next-server` to use `ResponsePayload` instead of `string | null` and manual `sendPayload` calls. This is the first step toward streaming support.

I split `renderToResponseWithComponents` into a separate `renderToResponseWithComponentsInternal` function for ease of review: GitHub's diff rendering was highly misleading, making it seem as though more of the function had changed. The separate function just makes the actual change clearer: we split `renderToHTMLWithComponents` into two promises; one that represents the actual render result, and one that represents all of the work (including background work for e.g. revalidation) that needs to be done as part of generating the result.

These changes make it easier to bubble up a `ResponsePayload`, instead of sometimes calling `sendPayload` out-of-band, centralizing all payload handling in `sendResponse` and eventually a similar function for public APIs that return a string. This centralization will make it much easier to handle a response that needs to be streamed, which is coming soon in another PR.
2021-07-06 09:41:51 +00:00
..
pages Wrong index path revalidation timer (#20818) 2021-01-13 16:15:11 +00:00
test Add initial ResponsePayload support (#26938) 2021-07-06 09:41:51 +00:00
next.config.js Add initial handling for dynamic route href resolving and rewrites on the client (#15231) 2020-08-13 14:39:36 +02:00
server.js Propagate Serverless Errors to Platform (#12841) 2020-06-01 23:12:45 +00:00
world.txt Remove Extraneous Imports in Pages (#9627) 2019-12-05 11:04:00 -06:00