mirror of
https://github.com/vercel/next.js.git
synced 2026-09-20 02:25:18 +08:00
306d4bda68
This update introduces a custom `swc-plugin` for Next.js that appends a non-enumerable `__NEXT_ERROR_CODE` property to all `Error` instances, enabling anonymous telemetry while keeping error codes hidden from console logs. The plugin manages error codes through an append-only `/packages/next/errors.json` file, which is automatically updated during the `pnpm build` process using a two-pass system to ensure consistent error mapping, even during concurrent builds.
14 lines
184 B
TypeScript
14 lines
184 B
TypeScript
import React from 'react'
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: {
|
|
children: React.ReactNode
|
|
}) {
|
|
return (
|
|
<html>
|
|
<body>{children}</body>
|
|
</html>
|
|
)
|
|
}
|