Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
57ddd363
Unverified
Commit
57ddd363
authored
Nov 14, 2025
by
Hendrik Liebau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Log server action RSC chunks
parent
f395e97e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
1 deletion
+21
-1
app-render.tsx
packages/next/src/server/app-render/app-render.tsx
+21
-1
No files found.
packages/next/src/server/app-render/app-render.tsx
View file @
57ddd363
...
@@ -649,7 +649,26 @@ async function generateDynamicFlightRenderResult(
...
@@ -649,7 +649,26 @@ async function generateDynamicFlightRenderResult(
}
}
)
)
return
new
FlightRenderResult
(
flightReadableStream
,
{
const
[
stream1
,
stream2
]
=
flightReadableStream
.
tee
()
const
reader
=
stream2
.
getReader
()
const
decoder
=
new
TextDecoder
()
;(
async
()
=>
{
try
{
while
(
true
)
{
const
result
=
await
reader
.
read
()
if
(
result
.
done
)
{
break
}
console
.
log
(
`-- RSC chunk --
${
result
.
value
.
byteLength
}
bytes --\n`
,
decoder
.
decode
(
result
.
value
,
{
stream
:
true
})
)
}
}
catch
{}
})()
return
new
FlightRenderResult
(
stream1
,
{
fetchMetrics
:
workStore
.
fetchMetrics
,
fetchMetrics
:
workStore
.
fetchMetrics
,
})
})
}
}
...
@@ -2186,6 +2205,7 @@ async function renderToHTMLOrFlightImpl(
...
@@ -2186,6 +2205,7 @@ async function renderToHTMLOrFlightImpl(
})
})
if
(
actionRequestResult
)
{
if
(
actionRequestResult
)
{
console
.
log
(
'actionRequestResult:'
,
actionRequestResult
)
if
(
actionRequestResult
.
type
===
'not-found'
)
{
if
(
actionRequestResult
.
type
===
'not-found'
)
{
const
notFoundLoaderTree
=
createNotFoundLoaderTree
(
loaderTree
)
const
notFoundLoaderTree
=
createNotFoundLoaderTree
(
loaderTree
)
res
.
statusCode
=
404
res
.
statusCode
=
404
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment