I have a yarn build script:
“rm -rf build && cd …/xyz-core && yarn build && cd …/client && cross-env CLIENT_ENV=development craco build”
I do this as I need to build a core library every time I deploy before I build the client (as its a dependency in the client code). This works fine on my local but when I run it in render I get an error saying “can’t find client directory” which means the cd command don’t seem to be working like they do in bash. I’m a newbie on the production deploy side so maybe i’m missing something. Render seems to remove the && and replace them with & like this:
“rm -rf build & cd …/xyz-core & yarn build & cd …/client & cross-env CLIENT_ENV=development craco build”
Maybe that affects it as well (and i’m not sure why it does that as && and & are different things). Any ideas here including how to solve the original problem of building a core library before I build the client?
Thanks!
Niel