mirror of
https://github.com/vercel/next.js.git
synced 2026-09-20 02:25:18 +08:00
f9f3afc664
When using an unsupported API in a route handler (eg, `export const dynamic` with `cacheComponents` enabled), we were not erroring in dev or failing the build. This is because the transform only asserted on pages & layouts, and not route handlers. This updates the handling to also check route handlers. Fixes NAR-371
12 lines
167 B
TypeScript
12 lines
167 B
TypeScript
export default function RootLayout({
|
|
children,
|
|
}: {
|
|
children: React.ReactNode
|
|
}) {
|
|
return (
|
|
<html lang="en">
|
|
<body>{children}</body>
|
|
</html>
|
|
)
|
|
}
|