new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

Hono · all subjects

runtime/bun

2 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

bodyLimit middleware with Bun large requests configuration

When using bodyLimit middleware with Bun for requests larger than Bun's default 128MiB limit, configure Bun.serve with maxRequestBodySize. This can be set in the export default configuration: export default { port: process.env['PORT'] || 3000, fetch: app.fetch, maxRequestBodySize: 1024 * 1024 * 200, // your value here } Or directly in Bun.serve(): Bun.serve({ fetch(req, server) { return app.fetch(req, { ip: server.requestIP(req) }) }, maxRequestBodySize: 1024 * 1024 * 200, // your value here })

bodyLimit middleware Bun limitation

If bodyLimit is configured with a maxSize larger than Bun.serve's default 128MiB request body limit, requests will fail before reaching Hono. Bun.serve will set status code 413 and terminate the connection before the request is passed to Hono, so the onError handler specified in bodyLimit will not be called.

Give your agent this brain