Refact the PR #746. This PR assigned a working dir "staticsites-cli" to run StaticSiteClient.exe when using "swa deploy". The dir will be created and removed automatically under the path of repo. In the deployment process, app and api folders will be copied to this working dir before zipping and uploading. This will fix the bug of https://github.com/Azure/static-web-apps-cli/issues/531, https://github.com/Azure/static-web-apps-cli/issues/550, and support next.js deployment.
Refact the PR #746. This PR assigned a working dir "staticsites-cli" to run StaticSiteClient.exe when using "swa deploy". The dir will be created and removed automatically under the path of repo. In the deployment process, app and api folders will be copied to this working dir before zipping and uploading. This will fix the bug of https://github.com/Azure/static-web-apps-cli/issues/531, https://github.com/Azure/static-web-apps-cli/issues/550, and support next.js deployment.