Skip to content

Explosive bundle size foot gun, leading to 413 Payload Too Large #4574

@sean256

Description

@sean256

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions