The Renderer Class
- Source: vue-renderer/renderer.js
This class is exporting a connect middleware which handles and serves all SSR and asset requests.
We can register hooks on certain life cycle events.
|(renderer, options)||Before setting up middleware and resources for the Renderer class, useful to overload some methods or options.|
|(app) connect instance||Before Nuxt adds its middleware stack. We can use it to register custom server side middleware.|
|(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.|
|(resources)||Called after resources for renderer are loaded (client manifest, server bundle, etc).|
|(renderer)||SSR Middleware and all resources are ready (Renderer ready)|
|(context.nuxt)||Every time a route is server-rendered and before |
|(url, result, context)||Every time a route is server-rendered. Called before sending back the request to the browser.|
|(url, result, context)||Every time a route is server-rendered. Called after the response has been sent to the browser.|
Caught a mistake or want to contribute to the documentation? Edit this page on GitHub!