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

composables: configuration

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.

routeRules for hybrid rendering

Nitro provides a routeRules feature in nuxt.config.ts that allows customizing how each route is rendered. Route rules can include: prerender (generate at build time), cache (with maxAge in seconds), redirect (with status code), ssr, appMiddleware, and noScripts. Some route rules (appMiddleware, redirect, prerender) also affect client-side behavior.

routeRules example configuration

Example of configuring route rules in nuxt.config.ts: ```ts export default defineNuxtConfig({ routeRules: { '/': { prerender: true }, '/api/*': { cache: { maxAge: 60 * 60 } }, '/old-page': { redirect: { to: '/new-page', status: 302 }, }, }, }) ``` This shows prerendering for SEO, caching for 1 hour, and redirection rules.

Give your agent this brain