perfect-paca icon indicating copy to clipboard operation
perfect-paca copied to clipboard

Unzipped size must be smaller than 262144000 bytes.

Open jmcmullen opened this issue 6 years ago • 1 comments

             Asset     Size  Chunks             Chunk Names
server-bundle.json  3.72 MB          [emitted]  
  nuxt: Call build:done hooks (2) +1m
  nuxt:build Building done +1m
Serverless: Packaging service...
Serverless: Excluding development dependencies...
Serverless: Creating Stack...
Serverless: Checking Stack create progress...
.....
Serverless: Stack create finished...
Serverless: Uploading CloudFormation file to S3...
Serverless: Uploading artifacts...
Serverless: Uploading service .zip file to S3 (124.18 MB)...
Serverless: Validating template...
Serverless: Updating Stack...
Serverless: Checking Stack update progress...
................
Serverless: Operation failed!
 
  Serverless Error ---------------------------------------
 
  An error occurred: MainLambdaFunction - Unzipped size must be smaller than 262144000 bytes.

My website is pretty large and has a lot of pages and assets. What would be the best approach to use this?

jmcmullen avatar Mar 15 '18 04:03 jmcmullen

somewhat belated, @jmcmullen , but the approach that I've taken is to do static hosting outside of the app. And then just put URLs/links within the app.

If this doesn't work, your app might be too big to host onto lambda/serverless

phlogisticfugu avatar Dec 07 '18 17:12 phlogisticfugu