Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Network Drive issue #96

Open
NguyenHoangMinhkkkk opened this issue Jan 11, 2024 · 0 comments
Open

Network Drive issue #96

NguyenHoangMinhkkkk opened this issue Jan 11, 2024 · 0 comments

Comments

@NguyenHoangMinhkkkk
Copy link

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:\"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant