From 074c60e0ec201c3d453dbd0f6ed9543b541f576a Mon Sep 17 00:00:00 2001 From: Tim Neutkens Date: Wed, 25 Mar 2020 18:08:15 +0100 Subject: [PATCH] Update data-fetching.md --- docs/basic-features/data-fetching.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/basic-features/data-fetching.md b/docs/basic-features/data-fetching.md index 866c97182a57b..ac7e6f2ed4793 100644 --- a/docs/basic-features/data-fetching.md +++ b/docs/basic-features/data-fetching.md @@ -131,7 +131,7 @@ export async function getStaticProps() { const posts = filenames.map(filename => { const filePath = path.join(postsDirectory, filename) - const fileContents = fs.readFileSync(fullPath, 'utf8') + const fileContents = fs.readFileSync(filePath, 'utf8') // Generally you would parse/transform the contents // For example you can transform markdown to HTML here