Metadata not woking
Answered
Sun bear posted this in #help-forum
Sun bearOP
Im using src/pages directory, everything use index files, layout.tsx doesn't work either... what im missing ?
Answered by B33fb0n3
you might mixed things up. In the pages router (src/pages) there is no "layout.tsx". That's only available in the app router (src/app). So take a look at your project and which router you really want to use and then use the correct syntax 👍
7 Replies
@Sun bear Im using src/pages directory, everything use index files, layout.tsx doesn't work either... what im missing ?
you might mixed things up. In the pages router (src/pages) there is no "layout.tsx". That's only available in the app router (src/app). So take a look at your project and which router you really want to use and then use the correct syntax 👍
Answer
Sun bearOP
i got page src/pages/app/leads/index.tsx with Metadata and title doesnt work
i got layout in src/pages/app/layout.tsx and doenst work either
@Sun bear yea, as said: you mixing things up. Please decide first which router you want to use and then use the correct syntax for the specfic router
Sun bearOP
the project is already working, just want to use metadata
happy to help