From d331bdee18b911120689d7eb9b866d2766b01854 Mon Sep 17 00:00:00 2001 From: Wyatt Johnson Date: Wed, 12 Dec 2018 12:59:54 -0700 Subject: [PATCH] fix: fixed misplaced "!" --- routes/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/index.js b/routes/index.js index 86434dda9..913c0862d 100644 --- a/routes/index.js +++ b/routes/index.js @@ -66,7 +66,7 @@ if (!DISABLE_STATIC_SERVER) { * Serve the directories under dist. */ const dist = path.resolve(path.join(__dirname, '../dist')); - if (process.env.NODE_ENV !== 'production') { + if (process.env.NODE_ENV === 'production') { router.use( '/static', staticServer(dist, {