mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +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]>
9 lines
174 B
TypeScript
9 lines
174 B
TypeScript
import { ReactNode } from 'react'
|
|
export default function Root({ children }: { children: ReactNode }) {
|
|
return (
|
|
<html>
|
|
<body>{children}</body>
|
|
</html>
|
|
)
|
|
}
|