I have built a headless site with Next.js and it has the default domain name of https://rcefcenglishministry.netlify.app/. Although I have setup englishministry.rcefc.org as the primary domain by changing the CNAME record on the hosting site.
The CMS is Wordpress which is hosted at english.rcefc.org.
What I want to do is redirect all english.rcefc.org to englishministry.rcefc.org which points to the netlify app. However the moment I change the redirect site through the Wordpress Redirection plugin then build fails.
I assume what is happening is that the build fails as it can’t get the necessary data through graphql at wordpress host since it redirects to netlify?
The error has show above can’t get any of the paths leading to the undefined error. Even after catching the undefines, it just results in a site that has no pages outside of the home page.
Any suggestions would be much appreciated.