Open sabrenda opened 8 months ago
Hi Sabrenda,
Thanks for the patch. I understand that __dirname can be '/' on development (https://github.com/vercel/next.js/discussions/14341). Is that why it was not working for you?
The approach of getting the current working dir (process.cwd()) might break the library for other people. We will have to implement a solution that works for both.
Would you be able to share with me how you are using the Tinify client with Vercel? That would help us reproduce the issue.
Hi! π
Firstly, thanks for your work on this project! π
Today I used patch-package to patch
tinify@1.7.1
for the project I'm working on.Here is the diff that solved my problem:
This issue body was partially generated by patch-package.