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
in development, fs works as normally, but release for pm2 service to run, fs cannot read the file path and said file not exist.
pm2 and my App working fine with local drives like "C:\"
The text was updated successfully, but these errors were encountered:
Hi, i'm facing a problem with network drive and pm2
i wrote an NextJs App, using FS for reading files.
and the problem occurs when my App try to read file from a Network drive in windows.
const fs = require('fs')
fs.readFileSync("Z:\Folder\data.txt")
"Z:\" is a network drive
in development, fs works as normally, but release for pm2 service to run, fs cannot read the file path and said file not exist.
pm2 and my App working fine with local drives like "C:\"
The text was updated successfully, but these errors were encountered: