When publishing a TS build to a local docker instance I got this error:
Pre-publish check failed with status 413 Payload Too Large:
After some digging I found the root cause. I accidentally imported SenderError from spacetimedb instead of spacetimedb/server.
This caused bundle.js to go from 812KB to 1.6MB
This is a very easy error to make, especially when the IDE or AI agent just does it for you, and there is no indication it's gonna cause a problem.