diff --git a/lib/nuxt.js b/lib/nuxt.js index dbc5a7c4d2..5053327f0b 100644 --- a/lib/nuxt.js +++ b/lib/nuxt.js @@ -28,7 +28,7 @@ class Nuxt { css: [], modules: [], layouts: {}, - serverMiddlewares: [], + serverMiddleware: [], ErrorPage: null, cache: false, loading: { diff --git a/lib/server.js b/lib/server.js index cf9853e1a1..fc728c383e 100644 --- a/lib/server.js +++ b/lib/server.js @@ -9,8 +9,8 @@ class Server { // Initialize this.app = connect() this.server = http.createServer(this.app) - // Add Middlewares - this.nuxt.options.serverMiddlewares.forEach(m => { + // Add Middleware + this.nuxt.options.serverMiddleware.forEach(m => { if (m instanceof Function) { this.app.use(m) } else if (m && m.path && m.handler) {