I'm using process.cwd() but I'm getting this error on vercel
Unhandled Rejection: Error: ENOENT: no such file or directory, open '/var/task/src/contents/projects/undefined.md'
and this on development
unhandledRejection: Error: ENOENT: no such file or directory, open 'C:\Users\User\Desktop\My-Portfolio\src\contents\projects\undefined.md' at Object.readFileSync (node:fs:448:20)
This is how I used it. My markdown files are in the path src/contents/projects/
const projectDirectory = path.join(process.cwd(), 'src', 'contents', 'projects')