mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
### What
When using dynamic metadata image rouets (such as `opengraph-image.js`)
under group routes, the generated urls were still normalized. In this
case it might have conflicts with those ones not under group routes. For
instance `app/(post)/opengraph-image.js` could have same url with
`/app/opengraph-image.js`. In reality we want them to be different
route, unlike layout or pages.
### How
So when we found `()` or `@` signs from the metadata image urls, we'll
generate a unqiue suffix (`-\d{6}`) and append to the generated url. So
they can be isolated from the ones are not under special convention
routes.
Closes NEXT-937
15 lines
235 B
TypeScript
15 lines
235 B
TypeScript
export default function layout({ children }) {
|
|
return (
|
|
<html>
|
|
<head></head>
|
|
<body>
|
|
<div className="group">{children}</div>
|
|
</body>
|
|
</html>
|
|
)
|
|
}
|
|
|
|
export const metadata = {
|
|
title: 'Group Title',
|
|
}
|