Azure / Azure/static-web-apps

Encountered an issue while validating staticwebapp.config.json: The file size exceeds the limit of 20 KB.

Open
#1,452 3 comments 2 reactions 0 assignees View on GitHub
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.

![image](https://github.com/Azure/static-web-apps/assets/22962332/fd939866-1639-4954-85c7-a7202f4e9eee)

My last successful run was a month ago.

![image](https://github.com/Azure/static-web-apps/assets/22962332/a71bb832-a9a0-469a-ac81-798b8bad1573)

**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
![image](https://github.com/Azure/static-web-apps/assets/22962332/0e769218-728b-4218-804d-e04f34e62fbb)

Success
![image](https://github.com/Azure/static-web-apps/assets/22962332/a197ffcc-4474-4dcf-9a24-4fc514c3b899)

**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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.