serverless-with-next5-boilerplate
serverless-with-next5-boilerplate copied to clipboard
Known issue: Useless files are packaged and uploaded to AWS
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.
Opened an issue on https://github.com/serverless-heaven/serverless-webpack/issues/333 to get some more insight about this.