diff --git a/lib/module.js b/lib/module.js index 8f18c56e..1d9810d5 100644 --- a/lib/module.js +++ b/lib/module.js @@ -47,10 +47,10 @@ function processRoutes (options) { } }) /** - * Register to hook `export:page`, AMP routes that returns 404 statusCode must be excluded + * Register to hook `generate:page`, AMP routes that returns 404 statusCode must be excluded * from static generation */ - this.nuxt.hook('export:page', ({ page, errors }) => { + this.nuxt.hook('generate:page', ({ page, errors }) => { if (errors.length) { const error = errors.find(error => error.route.includes('/amp')) if (error && error.error.statusCode === 404) {