7b3ec57c62
When using streaming SSR decodeText is called repeatedly with incoming chunks of data. In that case a multi-byte character may occasionally split between chunks, causing corruption. By setting the TextDecoder option 'stream' to true, and reusing the same TextDecoder instance, TextDecoder will memorise “unfinished” characters and decode them when the next chunk comes. |
||
---|---|---|
.. | ||
dependencies-can-use-env-vars-in-middlewares | ||
emit-decorator-metadata | ||
eslint-plugin-deps | ||
fallback-export-error | ||
generate-middleware-source-maps | ||
middleware-environment-variables-in-node-server-reflect-the-usage-inference | ||
middleware-typescript | ||
next/jest | ||
react-18-streaming-ssr | ||
reading-request-body-in-middleware | ||
required-server-files | ||
typescript-basic | ||
required-server-files-i18n.test.ts | ||
required-server-files.test.ts |