Azure / static-web-apps-cli

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

Jikun/start or deploy from outside #740

Closed cjk7989 closed 10 months ago

cjk7989 commented 10 months ago

Supported "swa start app1" or "swa deploy app1" outside the app1 folder. For example, under the current working dir containing two projects "app1" and "app2", the above commands will work if there is a "swa-cli.config.json" in "app1" folder, while in the past users must run "swa start" under the app folder.

IvanJobs commented 10 months ago

Just checked the code in details. It seems we got a config path option in SWA CLI's global configs. If Cx runs SWA outside of a project folder, we expect Cx to specify the config path as an extra option. This may be the appropriate way to handle this from a PM's perspective.