mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
See: https://github.com/vercel/next.js/security/advisories/GHSA-mq59-m269-xvcx and [16.1.7](https://github.com/vercel/next.js/releases/tag/v16.1.7) --------- Co-authored-by: Sebastian "Sebbie" Silbermann <[email protected]>
22 lines
538 B
JavaScript
22 lines
538 B
JavaScript
import { Suspense } from 'react'
|
|
|
|
export default function RootLayout({ children }) {
|
|
return (
|
|
// Needs to be above html since we can't allow scripts in sandbox
|
|
<Suspense fallback={<div>Loading...</div>}>
|
|
<html>
|
|
<head />
|
|
<body>
|
|
<ul>
|
|
{/* These need to be MPAs so that the appropriate headers are applied */}
|
|
<li>
|
|
<a href="/sandboxed">Sandboxed Page</a>
|
|
</li>
|
|
</ul>
|
|
{children}
|
|
</body>
|
|
</html>
|
|
</Suspense>
|
|
)
|
|
}
|