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.
2 parents 2d51226 + 45bde5d commit 089cfb2Copy full SHA for 089cfb2
gatsby-node.ts
@@ -38,7 +38,8 @@ const commonRedirectProps = {
38
* @returns boolean for if file is outdated or not
39
*/
40
const checkIsMdxOutdated = (filePath: string): boolean => {
41
- const dirname = path.resolve("./")
+ // .replace(/\\/g, "/") to replace \ in windows paths ex: C:\\folder\\myfile.txt becomes C:/folder/myfile.txt
42
+ const dirname = path.resolve("./").replace(/\\/g, "/")
43
const splitPath = filePath.split(dirname)
44
const tempSplitPath = splitPath[1]
45
const tempSplit = tempSplitPath.split("/")
0 commit comments