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, {