When implementing Gatsby's onCreatePage function to dynamically generate localized versions of pages, with gatsby-source-prismic-graphql Gatsby appears to get into an infinite loop on the createPagesStatefully step, thus preventing page generation and startup.
I realise this plugin has options to dynamically create pages without the need for utilizing Gatsby's onCreatePage, however, I would like more granular control over this (e.g. using country codes instead of language codes), also I am migrating from Contentful and still have pages that require this existing system for creating localized pages.
Description
When implementing Gatsby's
onCreatePage
function to dynamically generate localized versions of pages, withgatsby-source-prismic-graphql
Gatsby appears to get into an infinite loop on thecreatePagesStatefully
step, thus preventing page generation and startup.I realise this plugin has options to dynamically create pages without the need for utilizing Gatsby's
onCreatePage
, however, I would like more granular control over this (e.g. using country codes instead of language codes), also I am migrating from Contentful and still have pages that require this existing system for creating localized pages.Minimal reproduction: https://github.com/mrseanbaines/gatsby-prismic-blog
Related issues
164