generated from code-forge-io/open-source-stack
-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
Currently, sitemap generation for Remix / React Router v7 only supports handle functions defined on individual routes.
This works well when route-specific logic is needed, but there’s no way to apply shared logic across all routes.
A common example is generating alternate language links: every route may need the same set of alternates, yet today this logic has to be duplicated in each route’s handle.
One possible approach to support this use case would be to allow using the handle from root.tsx, which would run if the individual route doesn't have sitemap handle to be processed.
Let me know if this approach makes sense for the project.
I've already opened a PR for this, is shows best the approach taken,
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels