Skip to content

Commit

Permalink
Update data-fetching.md
Browse files Browse the repository at this point in the history
  • Loading branch information
timneutkens authored Mar 25, 2020
1 parent b46abed commit 074c60e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/basic-features/data-fetching.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 074c60e

Please sign in to comment.