<% if (debug) { %>{{ message }}<% } else { %>An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details.<% } %>
diff --git a/lib/builder/builder.js b/lib/builder/builder.js
index e8a01c9972..ed09d87f27 100644
--- a/lib/builder/builder.js
+++ b/lib/builder/builder.js
@@ -203,6 +203,7 @@ export default class Builder extends Tapable {
]
const templateVars = {
options: this.options,
+ messages: this.options.messages,
uniqBy: _.uniqBy,
isDev: this.options.dev,
debug: this.options.debug,
diff --git a/lib/common/options.js b/lib/common/options.js
index a232b2d62f..d0fe88746b 100755
--- a/lib/common/options.js
+++ b/lib/common/options.js
@@ -276,6 +276,12 @@ Options.defaults = {
chokidar: {}
},
messages: {
- not_found: 'This page could not be found.'
+ error_404: 'This page could not be found (404)',
+ server_error: 'Server error',
+ nuxtjs: 'Nuxt.js',
+ back_to_home: 'Back to the home page',
+ server_error_details: 'An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details.',
+ client_error: 'Error',
+ client_error_details: 'An error occurred while rendering the page. Check developer tools console for details.'
}
}