Closed mdvanes closed 6 years ago
https://github.com/mdvanes/mdworld-jackson/blob/8977574aba56643cf0da1f11e5ac643a30e22d9f/gatsby-node.js#L99
because on the post page, it does not resolve, e.g. https://mdworld.nl/site-updated/cover/1573bdd328cdab4afbc80a8a38f582bcb07880d6.png
In fact, just use /cover/image.png because an URL starting with / is prefixed with a root path in the PostCover component.
This does build to be run with gatsby build --prefix-paths see https://www.gatsbyjs.org/docs/path-prefix/
gatsby build --prefix-paths
https://github.com/mdvanes/mdworld-jackson/blob/8977574aba56643cf0da1f11e5ac643a30e22d9f/gatsby-node.js#L99
because on the post page, it does not resolve, e.g. https://mdworld.nl/site-updated/cover/1573bdd328cdab4afbc80a8a38f582bcb07880d6.png
In fact, just use /cover/image.png because an URL starting with / is prefixed with a root path in the PostCover component.
This does build to be run with
gatsby build --prefix-paths
see https://www.gatsbyjs.org/docs/path-prefix/