How do I implement dynamic project map nodes for a sitemap?

Last updated: August 11, 2025

Context

When working with dynamic pages in a project, the project map itself doesn't inherently know all possible dynamic paths. Developers need to understand how to properly implement dynamic project map nodes to generate a complete sitemap that includes these dynamic routes.

Answer

To implement dynamic project map nodes for a sitemap, you need to create a specific resolver that will "hydrate" the dynamic project map nodes with slugs from external sources. Here's how to approach this:

  1. Create a resolver that will be attached to your dynamic pages

  2. Use the resolver to fetch and generate the dynamic paths

  3. Implement the logic to combine these paths with your project map

You can find a complete working example in our coffee shop template repository, which demonstrates two different approaches for implementing dynamic project map nodes:

Coffee Shop Template Sitemap Example

Source: This information is based on official implementation examples provided by the Uniform team.