Skip to content

Commit b7bc1c6

Browse files
committed
fix: properly set clean path on all page component validations
1 parent c3ec8eb commit b7bc1c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/gatsby/src/utils/validate-page-component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export function validatePageComponent(
6161
//
6262

6363
if (!cleanComponentPath.includes(`/.cache/`) && isProductionEnv) {
64-
const fileContent = fs.readFileSync(component, `utf-8`)
64+
const fileContent = fs.readFileSync(cleanComponentPath, `utf-8`)
6565

6666
if (fileContent === ``) {
6767
const relativePath = path.relative(directory, cleanComponentPath)

0 commit comments

Comments
 (0)