nextjs · nextjs/cannot-override-metadata
cannot-override-metadata
Cannot Override Metadata
A child route segment attempted to override a metadata field that can only be set in the root layout, such as the viewport or the icons configuration. Some metadata fields are inherited and cannot be overridden at the segment level. Move the configuration to the root layout, or use a layout at the appropriate level in the route hierarchy.
References
In this namespace
— start of namespace —
next → client-only-in-server-component Client-Only in Server Component