// react-ssr.tsx import { renderToPipeableStream } from "react-dom/server.node"; import React from "react"; const http = require("http"); const App = () => (
Loading...
' ); }, onAllReady() { // If you don't want streaming, use this instead of onShellReady. // This will fire after the entire page content is ready. // You can use this for crawlers or static generation. // res.statusCode = didError ? 500 : 200; // res.setHeader('Content-type', 'text/html'); // stream.pipe(res); }, onError(err) { didError = true; console.error(err); }, }); }) .listen(9080); '>ciro/proxy-connect-testsaboutsummaryrefslogtreecommitdiff |