tatethurston / nextjs-routes

Type safe routing for Next.js
MIT License
553 stars 20 forks source link

all nextjs routes #181

Closed alinjf closed 2 months ago

alinjf commented 7 months ago

make a method that return all routes that nextjs app generate. its uses for sitemaps and schema for seo friendly

tatethurston commented 7 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?

alinjf commented 7 months ago

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: @.***>

tatethurston commented 7 months ago

@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.

tatethurston commented 7 months ago

How do you plan to handle dynamic routes for your sitemap? Eg /[foo] ?