The renderer class
This class is exporting a connect middleware which handles and serves all SSR and asset requests.
- Source: vue-renderer/renderer.js
Hooks
We can register hooks on certain life cycle events.
Hook | Arguments | When |
---|---|---|
render:before |
(renderer, options) | Before setting up middleware and resources for the Renderer class, useful to overload some methods or options. |
render:setupMiddleware |
(app) connect instance | Before Nuxt adds its middleware stack. We can use it to register custom server side middleware. |
render:errorMiddleware |
(app) connect instance | Before adding Nuxt error middleware, useful to add your own middleware before using Nuxt's. See the Sentry module for more info. |
render:resourcesLoaded |
(resources) | Called after resources for renderer are loaded (client manifest, server bundle, etc). |
render:done |
(renderer) | SSR Middleware and all resources are ready (Renderer ready) |
render:routeContext |
(context.nuxt) | Every time a route is server-rendered and before render:route hook. Called before serializing Nuxt context into window.__NUXT__ , useful to add some data that you can fetch on client-side. |
render:route |
(url, result, context) | Every time a route is server-rendered. Called before sending back the request to the browser. |
render:routeDone |
(url, result, context) | Every time a route is server-rendered. Called after the response has been sent to the browser. |
Edit this page on GitHub
Updated at Thu, Feb 9, 2023
Paiva
Florian Reuschel
Sébastien Chopin
Daniel Roe
Rishi Raj Jain
Clément Ollivier
Savas Vedova
Steven Soekha
Vinícius Alves
Kareem Dabbeet
Valentín Costa
Ryan Skinner
Alex Hirzel
Ajeet Chaulagain
René Eschke
Nico Devs
Muhammad
Nazaré da Piedade
Naoki Hamada
Tom
Yann Aufray
Anthony Chu
Nuzhat Minhaz
Lucas Portet
Richard Schloss
bpy
Antony Konstantinidis
Hibariya
Jose Seabra
Eze
Florian LEFEBVRE
Lucas Recoaro
Julien SEIXAS
Hugo
Sylvain Marroufin
Spencer Cooley
Piotr Zatorski
Vladimir Semenov
Harry Allen
kazuya kawaguchi
Unai Mengual
Hyunseung Lee
Alexandre Chopin
pooya parsa
Nick Medrano
Mosaab Emam
Iljs Путлер Капут
Heitor Ramon Ribeiro
Nero
Yoon Han
Ikko Eltociear Ashimine
FamCodings
Ayouli
F. Hinkelmann
felipesuri
Christophe Carvalho Vilas-Boas
Leoš Literák
Trizotti