Update to Gatsby v4 and fix pathPrefix
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 | ![]() |
![]() |
Page 2 | ![]() |
![]() |
Typescript | - | ![]() |
SSR | - | ![]() |
DSG | - | ![]() |
Edited by Alexander Turinske