Closed alinjf closed 2 months ago
@alinjf could you tell me more about your intent here? Are you trying to generate a sitemap.xml? Or just a method that returns all the routes?
yes, i want to do something that i need all routes that is exist in app. i wanted to generate sitemap.xml and schema.org for seo.
On Tue, Dec 26, 2023 at 9:44 PM Tate Thurston @.***> wrote:
@alinjf https://github.com/alinjf could you tell me more about your intent here? Are you trying to generate a sitemap.xml? Or something different?
— Reply to this email directly, view it on GitHub https://github.com/tatethurston/nextjs-routes/pull/181#issuecomment-1869700188, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADXTWUPM7U4Z524YLHUD2SDYLMHXNAVCNFSM6AAAAABBDBFIX6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNRZG4YDAMJYHA . You are receiving this because you were mentioned.Message ID: @.***>
@alinjf have you checked out https://www.npmjs.com/package/next-sitemap? I suspect there are a few existing npm packages that can accomplish this for you. If not, I’d like to understand what existing npm packages are missing before adding to this library.
How do you plan to handle dynamic routes for your sitemap? Eg /[foo] ?
make a method that return all routes that nextjs app generate. its uses for sitemaps and schema for seo friendly