i am building a simple netlify functions app that reads data from yaml file located in the functions directory of netlify project using the library require-yml. When running the app on local i successfully read and use the file using let locations = req(./functions/locations.yaml); but when deploying it to netlify it is no longer working and throwing error for no suck file or directory. I was wondering if some of you knows how i can have files and import them in the netlify lambda function, or how i can access the already uploaded ones i have, they are in the same dir as the functions called data.js. Thank you!
let locations = req(
);
1.4m articles
1.4m replys
5 comments
57.0k users