Gatsby, creating my own Dynamic Pages?


I currently have a single prismic repo serving multiple websites. This is controlled via tags (eg

I have upgraded to the latest Prismic Plugin and have hit a bit of a stumbling block. As far as I can see I have 3 possible options:

  • Not use the {PrismicPage.url}.tsx templating provided by plugin so I can create my own pages through gatsby-node and therefore do the filtering based on the tag there
  • Have the ability to customise the query that the plugin uses
  • Further modify the pages returned from the client in gatsby-node.

I am not sure which would be best in terms of future compatibility and getting the desired result right now.

Any help would be greatly appreciated!


Hello @andrew.miller, thanks for reaching out; I'll be happy to help you!

It depends on what you need to achieve. I guess it depends on how you want to structure the URLs. Using gatsby-node seems like the most feasible option because you can filter the documents from there. Have you constructed this query already?

Hi @Pau

Yes I have constructed the query and do have it working in my gatsby-node file. It turns out revisiting my project I had a couple of imports that were referencing my deleted {PrismicPage.url} file which were causing issues (which lead to me posting this question!)

Thanks for the help as it pushed me in the right direction!

1 Like

I'm glad you were able to sort it out!
Let me know we can help you with anything else