Files
Zack Tanner f9f3afc664 fix: route handlers should validate invalid exports (#83500)
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
2025-09-06 07:38:49 -07:00

12 lines
167 B
TypeScript

export default function RootLayout({
children,
}: {
children: React.ReactNode
}) {
return (
<html lang="en">
<body>{children}</body>
</html>
)
}