mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
In #61794, the routes manifest is used to find the interception route rewrites in `next-server` and computed on the fly in `next-dev-server` based on `appPaths`. The edge runtime doesn't have access to the routes manifest nor a full list of app paths. This writes an entry for the edge runtime to make the interception routes readable, and adds plumbing to return them in the `getInterceptionRouteRewrites` handling in `web-server`. This is what we use to signal to the server whether to return ‘Next-URL’ in the Vary for RSC requests. This piggybacks on the existing interception routes test but adds an edge runtime case. Closes NEXT-2304
18 lines
328 B
TypeScript
18 lines
328 B
TypeScript
// this file is swapped in for the normal layout file in the edge runtime test
|
|
|
|
import Link from 'next/link'
|
|
|
|
export const runtime = 'edge'
|
|
|
|
export default function RootLayout({ children }) {
|
|
return (
|
|
<html>
|
|
<head />
|
|
<body>
|
|
<Link href="/">home</Link>
|
|
{children}
|
|
</body>
|
|
</html>
|
|
)
|
|
}
|