Thanks for your answer. I am able to fix the issue now. It will be great if you can share more on what does the flag
--build-remote true
And the Environment variable
SCM_DO_BUILD_DURING_DEPLOYMENT=true
Do