There's no setting for it. Edge functions get about 2 seconds of actual CPU time per request (waiting on network doesn't count) and 256 MB of memory. Decoding and re-encoding a 12-megapixel photo three times in pure JS/WASM burns through that.
Options, easiest first:
- Don't resize at all, use Storage image transformations:
getPublicUrl(path, { transform: { width: 400 } }). Resizing happens on request and gets cached. It's a paid-plan feature. - Resize in the browser before upload with a canvas. Phones handle it fine and your uploads get 10x smaller too.
- Run the resize somewhere with real CPU (a small worker on Fly/Railway) and trigger it from a storage webhook.
For a Bolt app I'd do option 2, it also fixes slow uploads on mobile data.