Filter which pages to add to sitemap based on page property #530
choutkamartin
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I looked into the documentation but couldn't find what I'm looking for. This is kinda specific use case.
In Next.js, you can assign properties to pages.
You can use these properties to (for example) set property
auth
to true. This property is then used to check or not to check if user is signed in my application. As in example above.Is there any possible way, to get this property's value when building the sitemap? And if the property is
true
don't add that page to sitemap as it's clearly a hidden page?Thanks
Beta Was this translation helpful? Give feedback.
All reactions