Hi,
I'm just starting with Gatsby and first of all I have to say that it looks amazing. I love it. Thank you!
However after publishing the default project to my server, I found out that Gatsby seems to have troubles when running within a subfolder, for example my-domain.com/gatsby
. If I upload my project into that folder, the Link
component stops working, because it tries to refer to the top-level domain instead of my subfolder.
What I would like to know, is if there is any comfortable way to define the baseUrl, so that we do not need to fix each Link
after uploading / moving the site to a different location.
Have a look at the docs :)
https://www.gatsbyjs.org/docs/path-prefix/
Most helpful comment
Have a look at the docs :)
https://www.gatsbyjs.org/docs/path-prefix/