Upgrading to Redwood v0.20 🤗

Hello!

After letting Shia down for 26 long days I’ve decided to upgrade to 0.20.0 :slight_smile:

In doing so I’ve made the code modifications laid out in the announcement post, edited the scaffold-generated files one-by-one instead of regenerating with the --force flag, so as not to lose modifications I’ve made.

Everything seems to be working just fine in dev, but when deploying I’m getting this error at the very end of the build process:

3:19:51 PM: 2 new files to upload
3:19:51 PM: 2 new functions to upload
3:19:57 PM: Request must be smaller than 69905067 bytes for the CreateFunction operation
3:19:57 PM: Request must be smaller than 69905067 bytes for the CreateFunction operation
3:21:24 PM: Failed to upload file: graphql
3:21:44 PM: Failed to upload file: [FUNCTION_NAME]-background

What’s strange is that neither of these functions seem to be large enough to go above the stated limit – they’re 55.8 mb compressed / 178.4 mb decompressed (which I checked via Tobbe’s instructions here), and I haven’t added any new dependencies since my last successful deploy earlier this morning – I’ve only upgraded and made manual code changes.

I assume the solution here will end up being that I need to remove a dependency (the only ones I have right now are luxon, jsdom, axios, and repeater) to decrease my bundle size, but I’d welcome any other thoughts before I start working on converting date manipulation from using luxon to JS’s native Date class.

The fact that I’m ~14 mb below the stated limit makes me think there might be something else going on here, perhaps related to upgrading? :thinking: