Skip to content

Server: make express.json() body-size limit explicit + env-tunable #45

@CryptoJones

Description

@CryptoJones

express.json() defaults to a 100kb body limit. The call site doesn't make that explicit, and there's no env override — so a deployment that needs to accept larger payloads has to fork the server file. Make it explicit and add JSON_BODY_LIMIT env knob.

Test coverage: a 413 PayloadTooLarge test for oversized bodies and a passing test for small bodies.

Proudly Made in Nebraska. Go Big Red! 🌽 https://xkcd.com/2347/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions