Files
Jiachi LiuandGitHub 5fffc9bd76 [metadata] always serve streaming metadata in build (#77437)
### What

During the export phase in next build, we always enable the streaming metadata since if there's any dynamic access in metadata we can determine it in the build phase. If it's static, then it won't affect anything. If it's dynamic, then it can be handled when request hits the route.

### Why

We want it enabled even during build b/c this is how we will enforce DIO rules without making any dynamic metadata automatically a build failure
2025-03-24 10:56:57 -07:00

19 lines
395 B
TypeScript

import React, { Suspense } from 'react'
async function Inner({ children }) {
await new Promise((resolve) => setTimeout(resolve, 1 * 1000))
return (
<div className="inner">
<Suspense>{children}</Suspense>
</div>
)
}
export default function Layout({ children }: { children: React.ReactNode }) {
return (
<Suspense>
<Inner>{children}</Inner>
</Suspense>
)
}