mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
Since the static metadata routes should always be static that can be optimized, they should be marked as default runtime (or basically no runtime). This PR change the runtime detection, if it's a static metadata route file, its runtime will be erased. So that it won't be picked up by `edge-app-route-loader` and then by `next-image-loader` which emits the unexpected static file Fixes NEXT-1238
10 lines
161 B
JavaScript
10 lines
161 B
JavaScript
export default function layout({ children }) {
|
|
return (
|
|
<html>
|
|
<body>{children}</body>
|
|
</html>
|
|
)
|
|
}
|
|
|
|
export const runtime = 'experimental-edge'
|