Metadata in codegen App router Next.js

Hello! I faced with issue in codegen.


It generate wrapper in app router approach. It doesn’t work… Needs use Metadata object! Do you have any ideas how I can handle it?

Hi @uladzislau_bairash, this is currently possible with pages router.

We are currently working on a solution for app router that would handle dynamic metadata.

We don’t need the dynamic metadata. We would be glad to have static with:
const metadata = {}. Is it possible in app router? Looks like you need to update rules of code generation for app router: change tags to object metadata