From 35151150fde5ad21087f14bf22cf1acf0f150979 Mon Sep 17 00:00:00 2001 From: Clark Du Date: Fri, 28 Dec 2018 13:26:46 +0000 Subject: [PATCH] fix: wrong devMiddleware in non-modern dev mode --- packages/server/src/middleware/modern.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/server/src/middleware/modern.js b/packages/server/src/middleware/modern.js index 6b6f41cf54..c1f779b80a 100644 --- a/packages/server/src/middleware/modern.js +++ b/packages/server/src/middleware/modern.js @@ -47,7 +47,7 @@ const setModernMode = (req, options) => { if (options.modern === 'server') { req.modernMode = isModernBrowser } - if (options.dev) { + if (options.dev && !!options.modern) { req.devModernMode = isModernBrowser } }