mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
**This is only sent if there is an explicit, user-provided `--experimental-upload-trace` set.** Adds two new attributes to the `start-dev-server` span when `--experimental-upload-trace` is set: - `rage-restart` — true if the server was restarted within 2 minutes of last stopping - `missing-next-dir` — true if the `.next` dir from the previous session was deleted before restart State (stop time + dist dir path) is written to a temp file outside `.next` on graceful shutdown, so it survives `rm -rf .next`. Detection results are passed to the child via `NEXT_PRIVATE_DEV_SPAN_ATTRS`, following the same pattern as `NEXT_PRIVATE_ENABLED_FEATURES`. Test Plan: Added an e2e test. <!-- NEXT_JS_LLM_PR --> --------- Co-authored-by: Will Binns-Smith <[email protected]> Co-authored-by: Claude <[email protected]>
4 lines
63 B
TypeScript
4 lines
63 B
TypeScript
export default function Page() {
|
|
return <p>hello world</p>
|
|
}
|