Skip to content

Commit b95b74e

Browse files
fix(rss): prevent undefined in siteRootUrl generation
Signed-off-by: Rajesh-Nagarajan-11 <[email protected]>
1 parent cd1adf7 commit b95b74e

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)