In my case, it was a 2 y/o "known bug", which can be circumvented by deploying from outside the root directory, as explained here: https://github.com/Azure/static-web-apps-cli/issues/591#issuecomment-1283494661
Status stuck in Uploading
I used the swa cli to upload a website. I used this command:
swa deploy --deployment-token ...token...here... --env Production
The command finishes fine. Says it:
But it's always stuck in Uploading...
3 answers
Sort by: Most helpful
-
-
ajkuma 26,721 Reputation points Microsoft Employee
2023-09-08T18:54:23.6433333+00:00 Following-up on this, could you please confirm what version of the CLI are you using? The latest version is 1.1.4. If the version you are using is much older, please install the latest version. Even though the command completes successfully, there might be a difference in how a deprecated version versus current version works as far as sending the upload instructions to our backend prover.
If you haven't done these already, please check the version by running the following command:
swa --version
How large is the site you are uploading? If the site is relatively large, you may test with a small site to see if that makes a difference in the success.
If the issue still persists, we wish to engage with you offline for a much closer look, please send an email with subject line “Attn:Ajay” to AzCommunity[at]Microsoft[dot]com with the following details, I will follow-up with you.
1. Referencing this thread,
2. Azure subscription ID,
3. Azure resource name and the time of issue occurrence.
-
José Salgueiro 11 Reputation points
2024-03-21T12:38:48.8166667+00:00 I finally understood the problem. The max size for the static app is 500MB and the deploy zip file was already 482MB.
I reduced the app size and it worked.