mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
Server-side part of #94773. We remove previously added code that excludes root params from the ShellStatic stage and let them resolve there. We also add some special cases for `params` objects that consist entirely of root params - those are allowed to resolve as well.
14 lines
259 B
TypeScript
14 lines
259 B
TypeScript
import { ReactNode } from 'react'
|
|
|
|
export async function generateStaticParams() {
|
|
return [{ lang: 'en' }]
|
|
}
|
|
|
|
export default async function Layout({ children }: { children: ReactNode }) {
|
|
return (
|
|
<html>
|
|
<body>{children}</body>
|
|
</html>
|
|
)
|
|
}
|