Files
Jiachi LiuandGitHub 65ecd9c3e2 Fix missing metadataBase for static tw,og image resolving (#46243)
Replacement for #46156
Closes NEXT-587

* `metadataBase` will always need to be provided for twitter image and
opengraph image
* Fixing the metadataBase isn't picked up by static og/twitter images

## Bug

- [x] Related issues linked using `fixes #number`
- [x] Integration tests added
- [ ] Errors have a helpful link attached, see
[`contributing.md`](https://github.com/vercel/next.js/blob/canary/contributing.md)
2023-02-22 14:21:52 +01:00

8 lines
145 B
TypeScript

export default function Layout({ children }) {
return children
}
export const metadata = {
metadataBase: new URL('https://example.com/'),
}