Skip to content

Commit d6f30fd

Browse files
author
Invers3
committed
Update getPosts.js
Testing
1 parent 7664769 commit d6f30fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

netlify/functions/getPosts.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ exports.handler = async function(){
55

66
try {
77

8-
const postsDir = path.join(__dirname);
9-
const files = fs.readdirSync('');
8+
const postsDir = path.join(__dirname, '_posts');
9+
const files = fs.readdirSync(postsDir);
1010

1111
var posts = '';
1212
files.map(file => {

0 commit comments

Comments
 (0)