How can I find pages without metadata?
Unanswered
American posted this in #help-forum
AmericanOP
Hello!
Is there a way to find all pages which does not expose metadata? Do I need to use AST for this?
Is there a way to find all pages which does not expose metadata? Do I need to use AST for this?
7 Replies
AmericanOP
So I can add metadata to them 😇 or rather, so I get a list of pages without metadata to give to the person who will define the metadata
you can just store it in the database and store pages that has metadata in that case
any person can set the metadata in which it will be reflected on the next request
AmericanOP
Yes, that's how I do it for pages with "slugs", but we have so many other pages which aren't generated from data and I wanted to generate an overview of them, and in the long term have a check for it as part of my CI pipeline
AmericanOP
That gave me an idea, even though you removed it
Maybe I can on every page just do export const generateMetadata = metadataFactory() and just deduce the path inside that function