You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
exportasyncfunctiongetBlogPosts(blogDirectory: string=BLOG_CONTENT_PATH): Promise<Optional<PostData[]>>{console.log('Invoked all blog posts from: '+path.join(process.cwd(),blogDirectory));returngetMDXData(path.join(process.cwd(),blogDirectory));}
I get this on vercel
Invoked all blog posts from: /var/task/public/blogs
Invoked all mdx data from: /var/task/public/blogs
Invoked all blog posts from: /var/task/public/blogs
Invoked all mdx data from: /var/task/public/blogs
Error reading MDX files: [Error: ENOENT: no such file or directory, scandir '/var/task/public/blogs'] {
errno: -2,
code: 'ENOENT',
syscall: 'scandir',
path: '/var/task/public/blogs'
}
Error reading MDX files: [Error: ENOENT: no such file or directory, scandir '/var/task/public/blogs'] {
errno: -2,
code: 'ENOENT',
syscall: 'scandir',
path: '/var/task/public/blogs'
}
Local production build
Invoked all blog posts from: /home/ashgw/work/ashgw.me/public/blogs
Invoked all mdx data from: /home/ashgw/work/ashgw.me/public/blogs
Invoked all blog posts from: /home/ashgw/work/ashgw.me/public/blogs
Invoked all mdx data from: /home/ashgw/work/ashgw.me/public/blogs
How to reproduce
No response
Expected behavior
No response
The text was updated successfully, but these errors were encountered:
Bug description
Running Next 14.
When invoking
process.cwd()
likeI get this on vercel
Local production build
How to reproduce
No response
Expected behavior
No response
The text was updated successfully, but these errors were encountered: