The number of files in the app content folder exceeds the limit of 15000.
- Dominant language
- No language data
- Stars
- 346
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
I'm using Next JS app for front end and Azure devops to deploy to SWA.
I have azure devops task as below.
`- task: AzureStaticWebApp@0
inputs:
app_location: 'NextJS/sample-app'
api_location: 'NextJS/api'
output_location: 'out'
env:
azure_static_web_apps_api_token: $(deployment_token)`
**Pipeline Error**
`Determining projects to restore...
Restored /working_dir/NextJS/api/SampleApi/SampleApi.csproj (in 2.83 sec).
Publishing to directory /ss-oryx/api...
Microsoft (R) Build Engine version 16.7.2+b60ddb6f4 for .NET
Copyright (C) Microsoft Corporation. All rights reserved.
Determining projects to restore...
All projects are up-to-date for restore.
SampleApi -> /working_dir/NextJS/api/SampleApi/bin/Release/netcoreapp3.1/SampleApi.dll
SampleApi -> /ss-oryx/api/
Preparing output...
Removing existing manifest file
Creating a manifest file...
Manifest file created.
Done in 16 sec(s).
---End of Oryx build logs---
Function Runtime Information. OS: Windows, Functions Runtime: v3, .NET Core version: 3.1
Finished building function app with Oryx
Zipping Api Artifacts
Done Zipping Api Artifacts
The content server has rejected the request with: BadRequest
Reason: The number of files in the app content folder exceeds the limit of 15000.`
I have tried to reduce the output of number of files then I received below error
`
---End of Oryx build logs---
Function Runtime Information. OS: Windows, Functions Runtime: v3, .NET Core version: 3.1
Finished building function app with Oryx
Zipping Api Artifacts
Done Zipping Api Artifacts
The content server has rejected the request with: BadRequest
Reason: The size of the app content was too large. The limit for this Static Web App is 262144000 bytes.
`
We are at a stage to productionalize our application but this is a deal breaker. We have around more than 25k files now and that is only going to grow (significantly) larger over time.
I can't share repository details.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.