Unverified Commit 074c60e0 authored by Tim Neutkens's avatar Tim Neutkens Committed by GitHub

Update data-fetching.md

parent b46abed6
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment