serverless-with-next5-boilerplate icon indicating copy to clipboard operation
serverless-with-next5-boilerplate copied to clipboard

Known issue: Useless files are packaged and uploaded to AWS

Open Vadorequest opened this issue 6 years ago • 1 comments

The .next and static folders are packaged for all functions, which is useless because only the server handler will use them. Since I'm using Webpack to copy both those folders (and not SLS native packaging because we use serverless-webpack which isn't compatible), I don't know how to ignore those folders for certain functions.

Vadorequest avatar Mar 05 '18 17:03 Vadorequest

Opened an issue on https://github.com/serverless-heaven/serverless-webpack/issues/333 to get some more insight about this.

Vadorequest avatar Mar 05 '18 18:03 Vadorequest