vercel-sapper: Error: The Serverless Function "index" is 60mb which exceeds the maximum size limit of 50mb
I’ve been getting this issue below when deploying to vercel.
Error: The Serverless Function “index” is 60mb which exceeds the maximum size limit of 50mb. Learn more: https://vercel.com/docs/v2/platform/limits#serverless-function-size
Seems my static folder is more than 50mb. What’s strange though is I have NextJS applications with at least 1GB of data. Is this meant to happen? Is is a shortcoming of vercel-sapper in that it’s actually a serverless function run on vercel? What do?
vercel.json
{ "version": 2, "builds": [{ "src": "package.json", "use": "vercel-sapper" }] }
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 18 (7 by maintainers)
Commits related to this issue
- Add option to include extra files in lambda Resolves #36 — committed to thgh/vercel-sapper by thgh 4 years ago
- Add option to include extra files in lambda Resolves #36 — committed to thgh/vercel-sapper by thgh 4 years ago
I wanted to create an empty file
static/keep-static-${randomString}.txtbut I’m not sure how FileBlob vs FileFsRef works, so that will be for another time.