mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
### What In static generation phase of app page, if there's any case that we're receiving 3xx/4xx status code from the response, we 're setting it into the static generation meta now to make sure they're still returning the same status after build. ### Why During static generation if there's any 3xx/4xx status code that is set in the response, we should respect to it, such as the ones caused by using `notFound()` to mark as 404 response or `redirect` to mark as `307` response. Closes NEXT-2895 Fixes #51021 Fixes #62228
10 lines
191 B
JavaScript
10 lines
191 B
JavaScript
export default function Layout({ children, bar, foo }) {
|
|
return (
|
|
<div>
|
|
<h1>Layout</h1>
|
|
<div id="foo-slot">{foo}</div>
|
|
<div id="bar-slot">{bar}</div>
|
|
</div>
|
|
)
|
|
}
|