Snippet is too long. It must be less than 1000000 bytes

I’m seeing this error when I try to deploy. How can I fix it?

2020-09-22T21:25:30Z - info - Job 'deployBuild' failed: Request to /service/6mE8Dm0hFSCJzw0t0IykTm/version/1339/snippet/init-generated failed with 400: Snippet is 
2020-09-22T21:25:31Z - error - DeployBuild job failed

This happens when your router gets too complex and can’t be compiled for the edge. It happened much more frequently on older versions of the XDN. Simply upgrading to the latest (currently 2.13) will almost certainly fix this.