Error with pathing when using netlify

Request from ::1: POST /.netlify/functions/api/shorten
[Error: ENOENT: no such file or directory, open 'urls.json'] {
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: 'urls.json'
}
Request from ::1: POST /.netlify/functions/api/shorten
[Error: ENOENT: no such file or directory, open 'urls.json'] {
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: 'urls.json'
}
can someone tell me how to fix this BS ? I can run it ok when I dont have to deal with netlify , but this makes no sense to me ? If you need to see my pathing , feel free to ask me . I am getting tilted
3 Replies
i_lost_to_loba_kreygasm
here is an image of my pathing and code nobody ? 😦
Electronic
Electronic•2y ago
What are you trying to do
i_lost_to_loba_kreygasm
I am just trying to write my json file Works fine when I dont have netlify on It fucks up when i run a local netlify server
Want results from more Discord servers?
Add your server