[pull] canary from vercel:canary#586
Merged
pull[bot] merged 3 commits intojsWebsite:canaryfrom Oct 16, 2025
Merged
Conversation
## What? Adds more detailed time for each request, showing what time is spent in Next.js (i.e. routing, Turbopack compilation, etc.) and what time is spent executing the application code which includes time spent in React / React rendering, requiring the application code, etc. The additional info is dimmed: <img width="744" height="124" alt="CleanShot 2025-10-15 at 19 27 01@2x" src="https://github.com/user-attachments/assets/b6ce973e-4687-4865-9ebb-be54865331b1" /> Text: ``` GET / 200 in 626ms (compile: 500ms, render: 125ms) GET / 200 in 24ms (compile: 2ms, render: 22ms) GET / 200 in 20ms (compile: 2ms, render: 18ms) GET / 200 in 16ms (compile: 1ms, render: 15ms) GET / 200 in 16ms (compile: 1ms, render: 14ms) ``` While working on this I found that the existing time (the `in 22ms` part) did not include time spent in proxy.ts, which is unexpected as you'd want to see the total time spent on a request, including running proxy.ts. I've fixed that bug in this PR, as well as added tracking of the time spent in proxy: To test I added a middleware that adds 1 second delay on all requests: Before (note: request took more than 1 second): ``` GET / 200 in 16ms GET / 200 in 20ms ``` After (note: request still takes the same time, but now correctly logs it): ``` GET / 200 in 1610ms (compile: 450ms, proxy.ts: 1039ms, render: 121ms) GET / 200 in 1038ms (compile: 5ms, proxy.ts: 1007ms, render: 27ms) GET / 200 in 1034ms (compile: 5ms, proxy.ts: 1004ms, render: 25ms) ```
…84880) `cacheLife` is now stable and does not require an unstable prefix
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See Commits and Changes for more details.
Created by
pull[bot] (v2.0.0-alpha.4)
Can you help keep this open source service alive? 💖 Please sponsor : )