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

Nuxt · API · all subjects

hooks/nitro-runtime

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

dev:ssr-logs Nitro hook

The `dev:ssr-logs` Nitro hook is called at the end of a request cycle with an array of server-side logs. It receives `{ path, logs }` as arguments and runs on the server.

render:response Nitro hook

The `render:response` Nitro hook is called before sending the response. It receives `response, { event }` as arguments and runs on the server. See Nuxt source code for response interface and H3 for event interface.

render:html Nitro hook

The `render:html` Nitro hook is called before constructing the HTML. It receives `html, { event }` as arguments and runs on the server. See Nuxt source code for html interface and H3 for event interface.

render:island Nitro hook

The `render:island` Nitro hook is called before constructing the island HTML. It receives `islandResponse, { event, islandContext }` as arguments and runs on the server. See Nuxt source code for islandResponse and islandContext interfaces, and H3 for event interface.

close Nitro hook

The `close` Nitro hook is called when Nitro is closed. It takes no arguments and runs on the server.

error Nitro hook

The `error` Nitro hook is called when an error occurs. It receives `error, { event? }` as arguments and runs on the server. See Nitro source code for error interface and H3 for event interface.

request Nitro hook

The `request` Nitro hook is called when a request is received. It receives `event` as an argument and runs on the server. See H3 for event interface.

beforeResponse Nitro hook

The `beforeResponse` Nitro hook is called before sending the response. It receives `event, { body }` as arguments and runs on the server. See H3 for event interface.

afterResponse Nitro hook

The `afterResponse` Nitro hook is called after sending the response. It receives `event, { body }` as arguments and runs on the server. See H3 for event interface.

Give your agent this brain