We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d108b68 commit f888eb9Copy full SHA for f888eb9
scripts/reconf.js
@@ -57,7 +57,8 @@ async function gatsbyConfUpdate() {
57
58
// pathPrefix
59
// https://www.gatsbyjs.com/docs/how-to/previews-deploys-hosting/path-prefix/
60
- if (rgdConf.cname) {
+ isRoot = rgdConf.repo === `${rgdConf.owner}.github.io`;
61
+ if (rgdConf.cname || isRoot) {
62
conf.pathPrefix = `/`;
63
} else {
64
conf.pathPrefix = `/${rgdConf.repo}`;
0 commit comments