Azure / static-web-apps-cli

Azure Static Web Apps CLI ✨
https://aka.ms/swa/cli-local-development
MIT License
583 stars 110 forks source link

feat: add client working dir to support deploying next.js #765

Closed cjk7989 closed 8 months ago

cjk7989 commented 8 months ago

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.