This is the working flow of my application:
However, when I tried to deploy this application in heroku, I get an error in writeFileSync and cannot create files. To tackle that, I want to store the csv values in a nested array, and then upload directly to S3 as a csv file without local interference.
How do I achieve this? If there are better approaches, please do mention.