Refactored /prerender api to send a JSON, containing an encoded HTML string.
On the middleware side this required piping the output of the stream into a writable class in order to encode the HTML produced by renderToPipeableStream.
Future augmentations of the JSON response to contain other data should be fairly trivial.
Refactored
/prerender
api to send a JSON, containing an encoded HTML string.On the middleware side this required piping the output of the stream into a writable class in order to encode the HTML produced by
renderToPipeableStream
.Future augmentations of the JSON response to contain other data should be fairly trivial.
Closes #111