Skip to content

Commit 793e9a9

Browse files
committed
Fix next project specific errors
1 parent dab9e8f commit 793e9a9

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

packages/next/src/lib/memory/startup.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ export function enableMemoryDebuggingMode(): void {
99
// memory limit. It does not give any warning to the user though which
1010
// can be jarring. If memory is large, this may take a long time.
1111
if ('setHeapSnapshotNearHeapLimit' in v8) {
12-
// @ts-expect-error - this method exists since Node 16.
1312
v8.setHeapSnapshotNearHeapLimit(1)
1413
}
1514

packages/next/src/server/render.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -471,11 +471,6 @@ export async function renderToHTMLImpl(
471471
renderOpts.Component
472472
const OriginComponent = Component
473473

474-
let serverComponentsInlinedTransformStream: TransformStream<
475-
Uint8Array,
476-
Uint8Array
477-
> | null = null
478-
479474
const isFallback = !!query.__nextFallback
480475
const notFoundSrcPage = query.__nextNotFoundSrcPage
481476

@@ -1354,7 +1349,7 @@ export async function renderToHTMLImpl(
13541349
(initialStream: ReactReadableStream, suffix?: string) => {
13551350
return continueFizzStream(initialStream, {
13561351
suffix,
1357-
inlinedDataStream: serverComponentsInlinedTransformStream?.readable,
1352+
inlinedDataStream: undefined,
13581353
isStaticGeneration: true,
13591354
// this must be called inside bodyResult so appWrappers is
13601355
// up to date when `wrapApp` is called

0 commit comments

Comments
 (0)