Documentación offline Nuxt main

NUXTE2007

main Documentación oficial Licencia MITDescargado el 2026-08-02

En esta página

E2007#

setPageLayout() was called from a component's setup() during SSR. On the server the layout must be decided before the component renders, so changing it here produces incorrect SSR output.

Resolution#

Set the layout from route middleware, or statically with definePageMeta({ layout: '...' }).

::read-more{to="/docs/api/utils/set-page-layout"} ::