rsnext/packages/next/server/web/sandbox
Gerald Monaco 0b1d5e17bc
Use react-dom/server.browser in Node.js (#33950)
Instead of branching rendering based on Node.js and browser/web runtimes, we should just use the web version for now, which can run as-is on versions >=16.5.0 of Node.js, polyfilling `ReadableStream` on older versions when necessary.

There are a few potential downsides to this, as React is less able to optimize flushing and execution. We can revisit that in the future though if desired.
2022-02-04 17:52:53 +00:00
..
context.ts middlewares: limit process.env to inferred usage (#33186) 2022-01-12 13:09:24 +00:00
index.ts Refactor sandbox module cache (#31822) 2021-11-26 12:06:41 +00:00
polyfills.ts Use react-dom/server.browser in Node.js (#33950) 2022-02-04 17:52:53 +00:00
readable-stream.ts Use react-dom/server.browser in Node.js (#33950) 2022-02-04 17:52:53 +00:00
require.ts Refactor sandbox module cache (#31822) 2021-11-26 12:06:41 +00:00
sandbox.ts middlewares: limit process.env to inferred usage (#33186) 2022-01-12 13:09:24 +00:00