Skip to content
Meeko
Type to search the guides and the API reference. Open it from any page with / or Ctrl K; move with the arrow keys and open a result with Enter.
Get started

Contents

On this page

Not translated yet

This page has not been translated into English yet, so it is shown in Spanish.

ErrorPageRecord

interfaz Since 1.1.0

Página de error de la aplicación (app/error.meeko) y los layouts raíz que la rodean. Renderiza las URL sin ruta y respalda las rutas sin +error.meeko. La devuelve discoverErrorPage y la reciben errorPage de mountClientApp, createFrameworkHandler y AppManifest.

ts
import type { ErrorPageRecord } from "@meekojs/meeko/framework";

Source code src/app/runtime/router.ts:127

Declaración #

ts
interface ErrorPageRecord {
	readonly file: string
	readonly layouts: readonly string[]
	readonly layout?: NamedLayoutRecord
}

Example #

ts
import type { ErrorPageRecord } from "@meekojs/meeko/framework";

const errorPage: ErrorPageRecord = {
  file: "app/error.meeko",
  layouts: ["app/app.meeko", "app/layouts/default.meeko"],
};

Propiedades #

file #

propiedad sólo lectura

readonly file: string

Archivo .meeko de la página de error.

layouts #

propiedad sólo lectura

readonly layouts: readonly string[]

Cadena de layouts raíz, de fuera hacia dentro: app/app.meeko y después el layout raíz.

layout #

propiedad sólo lectura opcional since 1.5.0

readonly layout?: NamedLayoutRecord

Layout default que la envuelve, si existe: una URL sin ruta se muestra con él.

See also #

Was this page helpful?

Add a comment

It is sent when you choose “Yes” or “No”. Only the page, your answer and the comment are stored: no cookies and no personal data.

0 of 2000 characters

Edit on GitHub: packages/meeko/src/app/runtime/router.ts