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 · Guide · all subjects

rendering modes

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

Hybrid rendering with routeRules

Hybrid rendering is enabled through the 'routeRules' configuration in nuxt.config.ts, which allows customization of how each route is rendered. Route rules can include prerender for build-time generation, cache with maxAge for caching durations, redirect for URL redirections, and other rendering behaviors.

routeRules configuration example

Example of routeRules configuration: ```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 API routes, and redirects.

Nuxt-specific route rules

Some route rules are Nuxt-specific and change behavior when rendering pages to HTML: ssr, appMiddleware, and noScripts. Additionally, some route rules (appMiddleware, redirect, and prerender) affect client-side behavior.

noScripts route rule

The noScripts route rule is a Nuxt-specific route rule that affects page rendering. It prevents or controls script execution during the rendering of pages to HTML.

Vue Router integration

Nuxt uses an app/pages/ directory and naming conventions to directly create routes mapped to files using the official Vue Router library.

Give your agent this brain