Skip to content

Update to Gatsby v4 and fix pathPrefix

John R. D'Orazio requested to merge JohnRDOrazio/gatsby:master into master

Since this is a project template, when a user makes use of the template to create a new repository, the new repository will not necessarily be called gatsby, it could be called anything they like. So pathPrefix should not be a fixed value such as 'gatsby', it should be taken dynamically from the repo name. This is the only way for deployment to pages to work correctly.

Besides that fix, I went ahead and updated gatsby to v4.

Page Before After
Home image Screen_Shot_2022-03-16_at_23.32.27
Page 2 image Screen_Shot_2022-03-16_at_23.32.31
Typescript - Screen_Shot_2022-03-16_at_23.32.34
SSR - Screen_Shot_2022-03-16_at_23.32.38
DSG - Screen_Shot_2022-03-16_at_23.32.42
Edited by Alexander Turinske

Merge request reports