Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const stream = renderToNodeStream(<MyApp/>)
- // this doesn't work
- stream.pipe(zlib.createGzip())
- stream._flush = zlib.Z_SYNC_FLUSH
- stream.pipe(
- res,
- { end: "false" }
- )
- // stream.on("data", data => {
- // console.log(data)
- // })
- stream.on("end", () => {
- res.end(pageEnd())
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement