Lifecycle

ready

  • Type: AsyncFunction
  • Scope:dev|build
  1. module.exports = {
  2. async ready() {
  3. // ...
  4. }
  5. }

TIP

The ready hook is executed after the application is initialized and before some specific functional APIs are executed. These functional APIs include:

updated

  • Type: Function
  • Scope:dev
  1. module.exports = {
  2. updated() {
  3. // ...
  4. }
  5. }

generated

  • Type: AsyncFunction

  • Scope:build

Called when a (production) build finishes, with an array of generated page HTML paths.

  1. module.exports = {
  2. async generated (pagePaths) {
  3. // ...
  4. }
  5. }