Skip to content

Commit 4aca8d3

Browse files
author
Invers3
committed
Update post
Testing
1 parent 70a81bc commit 4aca8d3

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

netlify/functions/getPost.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ exports.handler = async function(event){
66
try {
77

88
const subject = event.queryStringParameters.name || 'post'
9-
const postsDir = path.join(__dirname, '_posts', subject + '.json');
9+
const postsDir = path.join(__dirname, '..', '..', 'public', '_posts', subject + '.json');
1010
const post = fs.readFileSync(postsDir);
1111

1212
return {
File renamed without changes.

0 commit comments

Comments
 (0)