Skip to content

Commit 3632992

Browse files
Merge pull request #7647 from Rajesh-Nagarajan-11/fix-rss-feed-url
fix(rss): prevent undefined in siteRootUrl generation
2 parents cd1adf7 + b95b74e commit 3632992

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

gatsby-config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const rawPrefix = process.env.PATH_PREFIX;
1717
const pathPrefix =
1818
rawPrefix && String(rawPrefix).trim().length
1919
? `/${String(rawPrefix).replace(/^\/+|\/+$/g, "")}`
20-
: undefined;
20+
: "";
2121

2222
const siteRootUrl = `${siteOrigin}${pathPrefix}`.replace(/\/$/, "");
2323
const shouldBuildFullSite = isFullSiteBuild();

0 commit comments

Comments
 (0)