a year ago
I have code that writes when POST an excel file in the project directory for future referencing… i know databases exists but that's how the client wanted it lol the issue is of course since the service the files are ephiemeral on a redeploy they disappeared i attached a volume but tbh i have no idea on how to write to it
like i'm actually using
const excelDirPath = join(process.cwd(), 'excel');
const excelFilePath = join(excelDirPath, 'calc.xlsx');
and i mounted /excel in the volume does that automagically works or i have to adjust it?
7 Replies
a year ago
N/A
a year ago
if you mount a volume to /excel you write into /excel
no need to overthink it
a year ago
join(process.cwd(), 'excel');
this results in something like /app/excel aka the wrong directory
a year ago
ok daddy thank you
a year ago
bruh
a year ago
<:sus_apple:1032821016319234068>