Site Information
Netlify site name: swyftfilings.netlify.app
Issue Description
We’re suddenly experiencing a deployment error that’s blocking our site across all environments (qa, staging, main). The error shows:
The function exceeds the maximum size of 250 MB
Failed to upload file: ssr-engine-odb
Failed to upload file: ssr-engine
What’s Strange
- This happened suddenly without any major code changes
- All environments are affected simultaneously
- We don’t use any SSR functions intentionally
- We’ve been actively working on reducing bundle size
What We’ve Tried
Checked .gitignore file (looks correct)
No recent large changes were pushed
Multiple bundle size reduction approaches
Verified we’re not using SSR functions in our code
Additional Issues
- Your support form is not working, so posting here instead
Build Log
Error occurs at: Failed to upload ssr-engine-odb and ssr-engine functions
Full error message:
Deploy did not succeed with HTTP Error 400: [PUT /deploys/{deploy_id}/functions/{name}][400] uploadDeployFunction default &{Code:400 Message:The function exceeds the maximum size of 250 MB}
Key part of build log:
10:59:10 AM: 2 new function(s) to upload
10:59:22 AM: The function exceeds the maximum size of 250 MB
10:59:22 AM: The function exceeds the maximum size of 250 MB
10:59:22 AM: Failed to upload file: ssr-engine-odb
10:59:22 AM: Failed to upload file: ssr-engine
Full Build Log
10:59:06 AM: Deploy site
10:59:06 AM: ────────────────────────────────────────────────────────────────
10:59:06 AM:
10:59:06 AM: Starting to deploy site from 'public'
10:59:08 AM: Calculating files to upload
10:59:10 AM: 1319 new file(s) to upload
10:59:10 AM: 2 new function(s) to upload
10:59:10 AM: Starting to upload
10:59:11 AM: 10% uploaded
10:59:11 AM: 20% uploaded
10:59:12 AM: 30% uploaded
10:59:12 AM: 40% uploaded
10:59:13 AM: 50% uploaded
10:59:14 AM: 60% uploaded
10:59:14 AM: 70% uploaded
10:59:15 AM: 80% uploaded
10:59:15 AM: 90% uploaded
10:59:22 AM: The function exceeds the maximum size of 250 MB
10:59:22 AM: The function exceeds the maximum size of 250 MB
10:59:22 AM: Failed during stage 'building site': Build script returned non-zero exit code: 2 (https://ntl.fyi/exit-code-2)
10:59:22 AM: Failed to upload file: ssr-engine-odb
10:59:22 AM: Failed to upload file: ssr-engine
10:59:22 AM: Section completed: deploying
10:59:22 AM:
10:59:22 AM: Error deploying
10:59:22 AM: ────────────────────────────────────────────────────────────────
10:59:22 AM:
10:59:22 AM: Error message
10:59:22 AM: Deploy did not succeed with HTTP Error 400: [PUT /deploys/{deploy_id}/functions/{name}][400] uploadDeployFunction default &{Code:400 Message:The function exceeds the maximum size of 250 MB}
10:59:22 AM:
10:59:22 AM: Error location
10:59:22 AM: At deploy the stage with HTTP status code '400'
10:59:22 AM: Build failed due to a user error: Build script returned non-zero exit code: 2
10:59:22 AM: Failing build: Failed to build site
Questions
- Why are
ssr-engine-odbandssr-enginefunctions being created when we don’t use SSR? - What’s causing these functions to exceed 250MB?
- How can we prevent these functions from being generated?
- Why did this suddenly affect all environments simultaneously?
Ask Netlify Status
Did not try Ask Netlify - Support form is not working
This is blocking all our deployments and we urgently need assistance to identify the root cause.
Thanks for your help! ![]()