Error: no such file or directory - what's the file structure?
Hi!
I'm trying to access locally stored images in my Node project, under /images/. I've tried both
process.cwd()
and __dirname
, but they have the same result of not being able to find the images on railway. Locally on Windows 11 it works fine, but in Railway, it errors
Am I doing something wrong? I feel like I'm doing something wrong.
The code in question is just:
Solution:Jump to solution
Nevermind, this was simply a product of me not realizing the image names were wrong :) Carry on
3 Replies