Encountered an issue while validating staticwebapp.config.json: The file size exceeds the limit of 20 KB.
- Dominant language
- No language data
- Stars
- 346
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
Until this week, I have been using a CI/CD workflow to deploy my React application to Azure static web. I am now getting an error that says
_**Encountered an issue while validating staticwebapp.config.json: The file size exceeds the limit of 20 KB.**_
There have been no changes to my workflow file other than tweaks I have made since the incident started happening in an attempt to resolve. The incident first started happening on Wednesday.

My last successful run was a month ago.

**To Reproduce**
Steps to reproduce the behavior:
Execute workflow to deploy React application to Azure
Error occurs during Build and Deploy step, using Azure/static-web-apps-deploy@v1
The message is
---End of Oryx build logs---
Try to validate location at: '/bin/staticsites/8108862a-9300-4403-b23d-f3b8233fdc2b-swa-oryx/app/build'.
Finished building app with Oryx
Using 'staticwebapp.config.json' file for configuration information, 'routes.json' will be ignored.
_**Encountered an issue while validating staticwebapp.config.json: The file size exceeds the limit of 20 KB.**_
**Expected behavior**
Until recently, I was able to deploy using the exact same workflow. Below is what I was expecting to see...
---End of Oryx build logs---
Try to validate location at: '/bin/staticsites/6b02c9eb-32fe-457c-b449-ec3031a847b5-swa-oryx/app/build'.
Finished building app with Oryx
No Api directory specified. Azure Functions will not be created.
Either no Api directory was specified, or the specified directory was not found. Azure Functions will not be created.
Zipping App Artifacts
Done Zipping App Artifacts
Uploading build artifacts.
Finished Upload. Polling on deployment.
Status: InProgress. Time: 0.0614594(s)
Status: InProgress. Time: 15.1233647(s)
Status: Succeeded. Time: 30.186602(s)
**_Deployment Complete :)_**
**Screenshots**
Failure

Success

**Device info (if applicable):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
**Additional context**
This is a private repo so I am not able to include a link, but I will be happy to get on a Teams call and share my screen. Thanks!
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.