eugelogic / gatsby-press

Gatsby with Headless WordPress
https://www.gatsbypress.co.uk/
MIT License
1 stars 0 forks source link

createLocalLink not picking the given site url #63

Open eugelogic opened 4 years ago

eugelogic commented 4 years ago

Following the issue with Transform node fields with gatsby-source-graphql I realised something else might not be right.

If I change the url in the options of the gatsby-source-graphql plugin, and use a totally different url for the createLocalLink function, the content fetched will be the right one but the function will use the url provided in the gatsby-source-graphql rather than one specified in the createLocalLink function by means of utils and config files.

Of course you would never used two different urls but I wonder why Gatsby is using the one on gatsby-config.js rather than the one in config.js