Unbound variable "PWD" on Vercel
Unanswered
Ramtin posted this in #help-forum
RamtinOP
During the Vercel deployment of my next.js app, when it's running "yarn run build" it gives an error with the message "Unbound variable "PWD". When I run yarn run build locally it works fine. My guess is that somehow the script can't find the PWD env variable but I have no idea how to fix it. I tried looking online but couldn't find a solution.
I attached the scripts in package.json and the logs on vercel. Thanks in advance for your help!
I attached the scripts in package.json and the logs on vercel. Thanks in advance for your help!
1 Reply
Toyger
you can try to replace
$PWD with $(pwd) which will get it from binary instead environment