# Lifecycle
# ready
- Type:
AsyncFunction
- Scope:
dev|build
module.exports = { async ready() { // ... } }
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
module.exports = { updated() { // ... } }
# generated
Type:
AsyncFunction
Scope:
build
Called when a (production) build finishes, with an array of generated page HTML paths.
module.exports = { async generated (pagePaths) { // ... } }