Read Write file in next js api

506 Views Asked by At

I want to Write a example.txt file in a __dirname + "/testfolder/example.txt" but next js build version not allow to write. so how can I solve this problem ?

When I try to Write any file the it's log Error: EISDIR: illegal operation on a directory, Write

0

There are 0 best solutions below