mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
### What & Why Using parallel routes with edge runtime would cause a build error when using a default segment, because edge runtime has special handling to [read the client reference manifests](https://github.com/vercel/next.js/blob/12c90405681cf4120e3fa7f3e10d9466f598f9bb/packages/next/src/build/utils.ts#L1543-L1555) for these when determining if a page is static. ### How In a similar fashion to how we exclude static checks on reserved pages, I added similar handling for app pages. Fixes #60917 Closes NEXT-2241
18 lines
236 B
TypeScript
18 lines
236 B
TypeScript
export const runtime = 'edge'
|
|
|
|
export default function Layout({
|
|
children,
|
|
slot,
|
|
}: {
|
|
children: React.ReactNode
|
|
slot: React.ReactNode
|
|
}) {
|
|
return (
|
|
<div>
|
|
<h1>Layout</h1>
|
|
{children}
|
|
{slot}
|
|
</div>
|
|
)
|
|
}
|