gnarois
gnarois

Reputation: 339

How to prevent Azure CLI's `swa deploy` from creating a .ZIP folder?

Every time I deploy an Azure static web app using swa deploy, it creates an unnecessary .zip folder at the root of my application:

enter image description here

Found no option in the docs to disabled this, so for now I have to delete these folders manually every time I make a deployment.

Upvotes: 1

Views: 183

Answers (1)

eddywashere
eddywashere

Reputation: 2618

Not that this prevents the zip files from being created, but I did add *.\\* to my .gitignore so that at least these aren't seen by git. Might also be worth adding a post build command to remove these on deploy.

Upvotes: 1

Related Questions