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.
1 parent 9b3f7e3 commit 9afba60Copy full SHA for 9afba60
packages/gatsby-source-filesystem/src/gatsby-node.js
@@ -90,14 +90,7 @@ See docs here - https://www.gatsbyjs.org/packages/gatsby-source-filesystem/
90
// Validate that the path is absolute.
91
// Absolute paths are required to resolve images correctly.
92
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
- `)
+ pluginOptions.path = path.resolve(process.cwd(), pluginOptions.path)
101
}
102
103
const fsMachine = createFSMachine()
0 commit comments