Skip to content

Commit f888eb9

Browse files
committed
fix: root
1 parent d108b68 commit f888eb9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/reconf.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ async function gatsbyConfUpdate() {
5757

5858
// pathPrefix
5959
// https://www.gatsbyjs.com/docs/how-to/previews-deploys-hosting/path-prefix/
60-
if (rgdConf.cname) {
60+
isRoot = rgdConf.repo === `${rgdConf.owner}.github.io`;
61+
if (rgdConf.cname || isRoot) {
6162
conf.pathPrefix = `/`;
6263
} else {
6364
conf.pathPrefix = `/${rgdConf.repo}`;

0 commit comments

Comments
 (0)