The Gatsby static site tool by default assumes the final built artifact will be hosted at the root of the domain. The built-in Link component honors the pathP
Link
pathP