Skip to content

Commit 9afba60

Browse files
author
Fabian Schultz
committed
Fix path instead of warning.
1 parent 9b3f7e3 commit 9afba60

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

packages/gatsby-source-filesystem/src/gatsby-node.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -90,14 +90,7 @@ See docs here - https://www.gatsbyjs.org/packages/gatsby-source-filesystem/
9090
// Validate that the path is absolute.
9191
// Absolute paths are required to resolve images correctly.
9292
if (!path.isAbsolute(pluginOptions.path)) {
93-
reporter.warn(`The path passed to gatsby-source-filesystem is relative:
94-
95-
${pluginOptions.path}
96-
97-
It is recommended to use an absolute path.
98-
99-
See docs here - https://www.gatsbyjs.org/packages/gatsby-source-filesystem/
100-
`)
93+
pluginOptions.path = path.resolve(process.cwd(), pluginOptions.path)
10194
}
10295

10396
const fsMachine = createFSMachine()

0 commit comments

Comments
 (0)